Windows Script Host

  • Thread starter Thread starter antoni
  • Start date Start date
A

antoni

It appears that Wscript does not process folder names with
spaces such as c:\program files\microsoft office....
I have different versions of office and need to address
one or the other.

Is there a simple way to work around that constraint
inherited from the eighties without modifying the standard
setup in my organization.
 
Antoni,
As with all Windows code, put quotes (") around the file name. e.g.
"c:\program files\microsoft office...."

Rick
 
Thanks for your comments.

My path is in a variable. The same happens when written
directly. For the same reason I cannot copy the shortcut
called "microsoft access.lnk". If I change the name
to "microsoftaccess.lnk" the copy works fine.

I just realised that my script works under NT but not
under XP.
There must be something missing in the XP installation. I
do not know what that could be.
I am open for suggestions.
 
Back
Top