Login | |
|
 |
RE: Newbie Question - Quotes within a objShell.exec - 3/11/2008 5:10:07 AM
|
|
 |
|
| |
ebgreen
Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
|
Well there is the VBS way and then there is the cmd way. When you execute that command you are actually creating a command prompt, so the command behaves just like it would at a command prompt: objShell.Run "cmd /c del %DESKTOP%\Sysprep.vbs" Assuming that you have an environment variable DESKTOP that points to that path. For the VBS way, look at the documentation for ExpandEnvironmentStrings and/or SpecialFolders.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Newbie Question - Quotes within a objShell.exec - 3/15/2008 5:38:49 AM
|
|
 |
|
| |
dm_4ever
Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
I would say whichever provides you what you need.... Special Folders only provides Temp, Windows, System32 paths Expand Environment Strings will provide those evnvironmental variables available Shell.Application provides even more "special" folders...but you should work and understand the information you've been provided so far.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|