[jawsscripts] Re: RUN function in JAWS Basic

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 15 Nov 2013 08:33:43 +0200

The most easy way is to take the first 6 chars of each directory or file and 
append ~1 to them. Of course, this only if the directory/file name is longer 
than 8 chars.
If there are more directories on a certain level that begin with that string, 
you may need to use ~2, ~3...

For example:

"C:\\Progra~1\\TextPa~1\\TextPad.exe"



--Octavian


----- Original Message ----- 
From: "Csaba Godo" <arpadhazi68.jawsul@xxxxxxxxx>
To: "JAWSScripts List" <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, November 15, 2013 7:13 AM
Subject: [jawsscripts] RUN function in JAWS Basic


> Hi everybody,
> 
> I've just ran into a problem using the "Run" function. I thought I share 
> my experience. The "Run" function takes only one parameter, which is a 
> path. It could be a name of a file, or a complete path of an internet 
> address. The documentation writes that this function acts like the "Run" 
> dialog box in the Windows. But it is not mentioned that it could not 
> accept long file or directory names. It could accept only the old short 
> names. So if I want the directory "C:\Program Files" to open, I have to 
> give "C:\\Progra~1" as parameter. Interesting stuff... no comment..
> 
> Just a question: How is it possible to get the short name of a file or a 
> directory in JAWS Basic? Do somebody have any idea?
> 
> Thanks,
> 
> Csaba
> __________ďż˝
> 
> View the list's information and change your settings at 
> http://www.freelists.org/list/jawsscripts
>
__________ďż˝

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

Other related posts: