PDA

View Full Version : WS.Run limited (WXP-Pro)



dzjoepke
03-19-2004, 12:41 AM
Hi,
I have a problem with ws.run
This is how my script looks like :

Set w = WScript.CreateObject("WScript.Shell")
ret = w.run("cacls c:\program files\meetingmaker /T /P iedereen:F",0,"TRUE")

This is all. The problem is that c:\program files\meetingmaker2 should be between " " . But because of the quotes before the cacls command, I cannot use them. Single quotes ' ' also don't work for this cacls command.
Can I somehow work around this problem?
Thanks in advance

Brf
03-19-2004, 10:14 AM
Within quotes you use two quotes to represent one quote.... so make your string like this:

"cacls ""c:\program files\meetingmaker"" /T /P iedereen:F"

The "" within a string is interpreted as a single quote