wscript.exe /d /x "C:\Documents and
Settings\usernameStovall\Desktop\RedirectMyDocumentsAndMail.vbs"
I get an instant popup: Initialization of the Windows Script Host failed.
(Access denied.)
I never got this message when developing the script when I was Administrator
on the box. I need to debug the script as an ordinary user so I can see
permissions issues.
How can I make it work as an ordinary user?
Thanks.
Perhaps doubling your slashes might help?
wscript.exe //d //x "C:\Documents and . . .
If it doesn't then I suggest you insert a number of statements such as
wscript.echo "Label 1"
wscript.echo "Label 2"
into strategically selected places in your code so that you can see how far
the code gets. You will need to run cscript.exe instead of wscript.exe to
make this work.
When I wanted to run the script as a normal (non-admin) user, I lowered
myself out of the local admininstrator group (becoming a normal user) who is
not normal a member of the debugger's group. This kept me (by design) from
running the script.
I logged back in as admin, added my non-admin id to the debugger's group,
logged back on as "joe average" and everything worked as advertised.
Thanks for the help though.
DavidS
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name