Login | |
|
 |
Re: WshShell.Run problems - 11/4/2004 7:01:27 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
First off, patience, most of the people who post here are at work and can only check sproadically throughout the day. Try this. Dim WshShell : Set WshShell = CreateObject("WScript.Shell") msgbox WshShell.ExpandEnvironmentStrings("%LOGONSERVER%")
|
|
| |
|
|
|
 |
Re: WshShell.Run problems - 11/5/2004 12:30:08 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
Then edit the code that I posted to work for you. I was just using a msgbox to display the results.
|
|
| |
|
|
|
 |
Re: WshShell.Run problems - 11/9/2004 6:58:14 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
I know what you posted and so I posted the info that could help if you tried it. Unless you use a cmd window (would need to test this to be positive), %whatever% will not work. That is a system variable and needs to be expanded. 'set a variable TheVariable = WshShell.ExpandEnvironmentStrings("%LOGONSERVER%") 'Then use this variable in your run line. objShell.Run TheVariable & "\netlogon\SR\VBS\printer.vbs,0,True" That should do it.
|
|
| |
|
|
|
 |
Re: WshShell.Run problems - 11/10/2004 5:51:06 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
put the ,0,TRUE outside the quotes
|
|
| |
|
|
|
|
|