|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Opening windows explorer on another folder
OK, This is embarassing but I cannot get this script to work. All that I want is to double click on the script which will open windows explorer to the folder I specify. I got the script from Scripting Guy.
Set objShell = CreateObject("Wscript.Shell") strPath = Wscript.Arguments(0) strPath = explorer.exe /e,c:\Dell objShell.Run strPath The error is in line 5; Char 12; Error Expected end of statement. Any Help would be appreciated. First Script! Tim |
|
#2
|
||||
|
||||
|
Opening windows explorer on another folder
if ur not passing the path in the command to run the script, you don't need the Wscript.Arguments(0) and also u need to put the path inside double quotes.
see below for example... Code:
Set objShell = CreateObject("Wscript.Shell")
strPath = "explorer.exe /e," & "c:\DELL"
objShell.Run strPath
__________________
Hope this advise helps. ![]() If so please show your appreciation by adding reputation points (click gauge image on top right of this post and score).
|
|
#3
|
|||
|
|||
|
Quote:
Excellent. Thank You for your help. It all works well now!!! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > Opening windows explorer on another folder |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|