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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top