Categories




Still have a problem? Ask for help at our discussion forum.
Search


Advanced Search
Article Options
Popular Articles
  1. Handwrite for MSN Messenger
  2. Win2000 Logon Screen
  3. The difference between 64 and 32 bit processors
  4. Windows XP FAQ T
  5. Windows XP FAQ P
No popular articles found.

 »  Home  »  User Interface Page 1  »  Correct explorer shortcut
Correct explorer shortcut
By  Super Admin  | Published  02/23/2005 | User Interface Page 1 | Rating:
Correct explorer shortcut

Running this script will create a new explorer icon on your desktop that will not open up on the pesky "My Documents" folder.

Just paste the following text into a file, and rename it explorershortcut.vbs, then double click on it.
- - - - - - - - - - - - - - - - - -
' A simple shortcut

' We create our first namespace and give it a reference

Set ws = WScript.CreateObject("WScript.Shell")

' Use the reference to access one of the methods.

dsktop = ws.SpecialFolders("Desktop")

' Set creates an object variable

set scut = ws.CreateShortcut (dsktop & "\Explorer.lnk")

' use the object variables method

scut.TargetPath = "%systemroot%\explorer.exe"

scut.Arguments = " /e,::{20d04fe0-3aea-1069-a2d8-08002b30309d}"

' Many objects need to be saved to write the information

scut.save
--------------------------------

How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Tell us why you rated this way (optional):

Send to Author Post on Site

Comments
  • Comment #1 (Posted by an unknown user)
    Rating
    you can do the same thing if you just edit all pre-existing Windows Explorer shortcuts' targets to the following: %SystemRoot%explorer.exe /e,/n,
     
  • Comment #2 (Posted by an unknown user)
    Rating
    It is nice to see that it actually worked. Thanks
     
Submit Comment