[jawsscripts] Re: Run command with spaces

  • From: "jaws tech" <jawsmaster@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 30 Dec 2008 18:44:33 -0500

Wow,
That did it!!  I never would have thought of that.

It also turns out that none of the long file names I was using had spaces
within their first 6 characters.  I tried
using the long filenames on a scenario that had spaces in the first part of
the filename and could not get it to
work.  Just for giggles, how would the following path be handled??

*Run("C:\\two time\\Delete_pdf.exe")*

I tried using the following:

*Run("C:\\two time\\Delete~1.exe")*

and it did not work.  Sorry if I'm making more work for you but I really
want to understand this for future

scripting jobs.

Thanks very much.

On Tue, Dec 30, 2008 at 6:24 PM, Martin Slack <m.g.slack@xxxxxxxxxxxx>wrote:

> The Run command doesn't understand long file names.  The microsoft way to
> shorten them is shown below (assuming each folder / file is the first one
> in
> alphabetic order):
>
>
> Run("C:\\Docume~1\\Jones\\Applic~1\\Freedo~1\\JAWS\\9.0\\Settings\\enu\\Delete~1.exe")
>
>  hth
>
> Martin
>
>
>
> ----- Original Message -----
> From: "jaws tech" <jawsmaster@xxxxxxxxx>
>  To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Tuesday, December 30, 2008 11:10 PM
> Subject: [jawsscripts] Re: Run command with spaces
>
>
> > Wow.  I am really confused by some of the syntax being given here, such
> > as:
> > Run("\"" + "command here" + "\"")
> > I understand the use of double quotes within the outer quotes but this
> > doesn't seem consistent with other
> > languages that I've used.
> >
> > Anyway, I have tried several permutations based on the answers already
> > given
> > and none seem to work.
> > My command is given below.  If someone could please help me understand by
> > putting this into the proper
> > format it would be greatly appreciated.  It will probably sink in once I
> > see
> > it done in full.
> >
> > *
> >
> > Run("C:\\Documents and Settings\\Jones\\Application Data\\Freedom
> > Scientific\\JAWS\\9.0\\Settings\\enu\\Delete_pdf.exe")
> > *
> > Thanks.
> > On Tue, Dec 30, 2008 at 5:26 PM, Jim Bauer <holdsworthfan@xxxxxx> wrote:
> >
> >> The string needs to be enclosed in backslash-escaped quotes
> >> (\"<pathString>\").
> >>
> >> Original message
> >> from: "jaws tech" <jawsmaster@xxxxxxxxx>
> >> subject: [jawsscripts] Run command with spaces
> >> date: Tue, 30 Dec 2008 17:16:19 -0500
> >>
> >> >Is it possible to use the run command on an executable that is in a
> path
> >> >that contains spaces??  So
> >> >far it is not working for me unless I am missing something.
> >> >Thanks.
> >> >
> >> >
> >> >__________
> >>  >Visit and contribute to The JAWS Script Repository
> >> http://jawsscripts.com
> >> >
> >> >View the list's information and change your settings at
> >> >http://www.freelists.org/list/jawsscripts
> >>
> >> __________
> >> Visit and contribute to The JAWS Script Repository
> http://jawsscripts.com
> >>
> >> View the list's information and change your settings at
> >> http://www.freelists.org/list/jawsscripts
> >>
> >>
> >
> >
> > __________
>  > Visit and contribute to The JAWS Script Repository
> http://jawsscripts.com
> >
> > View the list's information and change your settings at
> > http://www.freelists.org/list/jawsscripts
> >
> >
>
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: