Forgotten your password?

Forum Index > VBS > Open Folder with
Author Message
Save this script and put it in the directory you want to open with folder view. right click your desktop and create a shortcut to the vbs file. if you named it OpenMyFolder.vbs you should make a shortcut to this file. i made this because i have had a shortcut in the past (from bearshare) which opened without folder view.

1
2
3
4
5
6
7
8
9
10
11
Set objShell = CreateObject("Wscript.Shell")

strPath = Wscript.ScriptFullName

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = objFSO.GetFile(strPath)
strFolder = "C:\........YOUR PATH.........."

strPath = "explorer.exe /e," & strFolder
objShell.Run strPath


don't forget to put your directory path
Forum Index > VBS > Open Folder with