Marook-Online
* 06.Feb.2012, 15:16 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
10-Nov-2007 23:42
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


If you need to know where is the Desktop located on a different computer than yours, you can get this goal with vbs Wink

Copy and Paste the following code into a textfile and rename its extension to .vbs, doubleclick on it and see.

Code
GeSHi (vb):
  1. Set WshShell = WScript.CreateObject("WScript.Shell")
  2. '---------- List of special folders ----------
  3. 'following folders you can get
  4. 'AllUsersDesktop
  5. 'AllUsersStartMenu
  6. 'AllUsersPrograms
  7. 'AllUsersStartup
  8. 'Desktop
  9. 'Favorites
  10. 'Fonts
  11. 'MyDocuments
  12. 'NetHood
  13. 'PrintHood
  14. 'Programs
  15. 'Recent
  16. 'SendTo
  17. 'StartMenu
  18. 'Startup
  19. 'Templates
  20.  
  21. '--- Get Desktop folder
  22.  strDesktop = WshShell.SpecialFolders("Desktop")
  23. '--- Create a Shell-link on desktop
  24. Set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")
  25.    oShellLink.TargetPath = WScript.ScriptFullName
  26.    oShellLink.WindowStyle = 1
  27.    oShellLink.Hotkey = "Ctrl+Alt+e"
  28.    oShellLink.IconLocation = "notepad.exe, 0"
  29.    oShellLink.Description = "Shortcut Script"
  30.    oShellLink.WorkingDirectory = strDesktop
  31.    oShellLink.Save
  32. '--- Create a URL-link on desktop
  33. Set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web Site.url")
  34.    oUrlLink.TargetPath = "http://www.microsoft.com"
  35.    oUrlLink.Save
  36.  
Created by GeSHI 1.0.7.20

MSDN Link
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!