| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Thu Oct 24, 2002 8:44 pm Post subject: @SHORTNAME...Examples requested |
|
|
Much appreciation for examples of using @SHORTNAME
I am having trouble with win95 and 98 executing files with long filenames.
Example:
Shell open,C:\Windows\Program Files\My File\Very Long Name.exe /switch
The System Reponse = can not locate file
Thanks, nt |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Oct 24, 2002 9:42 pm Post subject: |
|
|
First of all, if you want to pass on commandline parameters with the SHELL open command then remember
to put a comma between the filename and the parameter(s):
| Code: | | Shell open,C:\Windows\Program Files\My File\Very Long Name.exe,/switch |
If you don't, you'll get errors like the one you described. Normally you shouldn't have to use @shortname here.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Oct 24, 2002 10:22 pm Post subject: |
|
|
It's also not a bad idea to enclose filenames with
spaces in quotes:
"C:\Windows\Program Files\My File\Very Long Name.exe"
This is prolly more important when using the RUN
commands without shortname.
To use @shortname():
RUN @shortname(C:\Windows\Program Files\My File\Very Long Name.exe)
Cheers, Mac
__________________________________________________________________________________________________________________________ _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Fri Oct 25, 2002 1:44 am Post subject: thank you |
|
|
Thanks, Mac and Dr Dread...
The team on this forum are ggggreat,
as Tony the Tiger would say, I would also agree!
Thanks again. nt |
|
| Back to top |
|
 |
|