Little offtopic VBScript

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hell
I have problem with lond path names in vbscript. For example I would like to run a program that is in "D:\program files\putty\putty.exe" when I put this path to the obj.Run("...") it returns error that it couldn't find that file. When I copy this file on d:\... it works fine, but it's not what I like to have :( Is there any way to force it run in a nice way :)
JustM

PS>I am sorry for offtopic but I didn't find a group about VBS,if there is one please give an address.
 
Hi VBS

I do not know the resolution, however this was your other question.

microsoft.public.scripting.vbscript

Cor
 
Hi VBS

The first thing I notice is that the path to your program contains a space. In order for the path to be interpreted correctly, you will need to wrap the command in quotes..

Call obj.Run("""D:\program files\putty\putty.exe""", 1, True

HTH
Gary
 
Back
Top