Login | |
|
 |
Re: WshShell.Run - 7/21/2004 11:13:15 PM
|
|
 |
|
| |
mbouchard
Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
I am not sure that I am following you. Are you saying that the file name has several spaces at the end of the name when you highlight it and start to rename it? What error are you getting when attempting to run the apps? Also, there is no need to do this Set WshShell = WScript.CreateObject ("WScript.Shell") Set WshShell2 = WScript.CreateObject ("WScript.Shell") As WshShell.Run can be used as many times as needed in the script.
|
|
| |
|
|
|
 |
Re: WshShell.Run - 7/22/2004 1:42:21 AM
|
|
 |
|
| |
mbouchard
Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Does your path have spaces in it? If so you will need to add some quotes around the path. for instance While this will give you an error wshShell.Run "C:\Program Files\Internet Explorer\iEXPLORE.EXE",1,true This one will work wshShell.Run """C:\Program Files\Internet Explorer\iEXPLORE.EXE""",1,true Mike
|
|
| |
|
|
|
 |
Re: WshShell.Run - 7/22/2004 3:25:15 AM
|
|
 |
|
| |
mbouchard
Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Welcome
|
|
| |
|
|
|
|
|