Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Create shortcut for a drive letter (c:) with batch file

HTVi
TV Discussion Newsgroups

Create shortcut for a drive letter (c:) with batch file
adch <adch.go[ at ]gmail.com> 5/11/2007 11:09:47 AM
Is there a way to create a shortcut of a drive letter (c:) with batch
file?
I tried with this "http://www.ss64.com/nt/shortcut.html" but nothing
happend!

Re: Create shortcut for a drive letter (c:) with batch file
"ThatsIT.net.au" <me[ at ]thatsit> 5/11/2007 4:37:13 PM

"adch" <adch.go[ at ]gmail.com> wrote in message
news:1178881787.533065.127640[ at ]u30g2000hsc.googlegroups.com...
[Quoted Text]
> Is there a way to create a shortcut of a drive letter (c:) with batch
> file?
> I tried with this "http://www.ss64.com/nt/shortcut.html" but nothing
> happend!
>

easy done in VBS

http://dev.thatsit.net.au/samples/wsh/thatsit/fso/networkdrives.asp

Re: Create shortcut for a drive letter (c:) with batch file
adch <adch.go[ at ]gmail.com> 5/14/2007 8:42:30 AM
Thanks i already did the mapdrives now i want to create shortcuts for
these maped drives on the desktop.
Any idea?

Re: Create shortcut for a drive letter (c:) with batch file
"ThatsIT.net.au" <me[ at ]thatsit> 5/18/2007 3:22:46 PM

"ThatsIT.net.au" <me[ at ]thatsit> wrote in message
news:0DAC4668-1022-47FC-BD00-D928BD84BC1F[ at ]microsoft.com...
[Quoted Text]
>
> "adch" <adch.go[ at ]gmail.com> wrote in message
> news:1178881787.533065.127640[ at ]u30g2000hsc.googlegroups.com...
>> Is there a way to create a shortcut of a drive letter (c:) with batch
>> file?
>> I tried with this "http://www.ss64.com/nt/shortcut.html" but nothing
>> happend!
>>
>
> easy done in VBS
>
> http://dev.thatsit.net.au/samples/wsh/thatsit/fso/networkdrives.asp

Yes

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop &
"\Shortcut.lnk")
oShellLink.TargetPath = "c:\yourfile"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "My Shortcut"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\Microsoft Web
Site.url")
oUrlLink.TargetPath = "http://www.microsoft.com"
oUrlLink.Save


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen