fliegerx1
Goto Top

Desktopverknüpfung per Cmd hinzufügen

Hallo,

wir benötigen für alle User bei uns im Betrieb ein Desktopsymbol vom Acrobat Reader.
Ist es möglich dieses per Anmelde Script zu erzeugen?

Vielen Dank für Eure Hilfe.

Dirk

Content-Key: 36573

Url: https://administrator.de/contentid/36573

Printed on: April 23, 2024 at 13:04 o'clock

Member: AndreasHoster
AndreasHoster Jul 24, 2006 at 09:59:00 (UTC)
Goto Top
Ja, es gibt den Befehl shortcut.exe dafür.
shortcut: [-? -h -f -c -r -s] [[-t] target [[-n] name]] [-d working directory]
[-a Arguments] [-i Iconfile] [-x Icon index] [-u {all|[natdix]}]
[-l logfile]

-? -h This help
-f Force overwrite of an existing short cut
-c Change existing shortcut
-s Make shortcut non tracking (Stupid)
-r Resolve broken shortcut
-t target Specifies the target of the shortcut
-n name Specifies the file name of the shortcut file
-d directory Specifies the directory name to start the application in
-a arguments Specifies the arguments passed when the shortcut is used
-i iconfile Specifiles the file the icon is in
-x index Specifies the index into the icon file
-u [spec] Dumps the contents of a shortcut. 'all' is the same as 'natdix'
but the letters of 'natdix' can be specified to display specific
fields in the shortcut (repeats allowed, and order followed)
-l logfile record error messages in specified file

Also z.B. so:
shortcut -t PFAD_ZUM_READER -n %userprofile%\desktop\reader.lnk
Mit den Icons muß man etwas rumspielen, bis man das richtige hat.
Member: fliegerx1
fliegerx1 Jul 24, 2006 at 13:09:36 (UTC)
Goto Top
Hallo,

erst mal vielen Dank für die ausführliche Hilfe. Leider befindet sich in meinem XP keine shortcut.exe Datei.
Was nun?
Muß man diese Datei downloaden?

Mfg
Dirk
Member: AndreasHoster
AndreasHoster Jul 24, 2006 at 14:13:04 (UTC)
Goto Top
Ups ...
Ja, die shortcut.exe stammt aus dem Windows NT Ressource Kit. Wo man das heute noch herbekommt weiß ich gerade nicht.
Member: fliegerx1
fliegerx1 Jul 24, 2006 at 14:46:08 (UTC)
Goto Top
Hallo,
habe sie im Netz zum download gefunden. Jetzt hab ich alles eingetragen nur irgendwie klappts nicht
Dies ist der Eintrag in meiner test.bat die genau wie die shortcut.exe auf der Root liegt unter c:

shortcut -t c:\Programme\Adobe\Acrobat 5.0\Reader\AcroRd32.exe -n %schuckad%\desktop\reader.lnk

Leider wurde kein Icon erzeugt.
Dann habe ich einfach mal eine andere geschrieben mit diesem Eintrag:

shortcut -t c:\lanstartcmd.exe -n %userprofile%\desktop\test.lnk

Meldung im DOSFenster

c:\>shortcut -t c:\lanstartcmd.exe -n c:\Dokumente und Einstellungen\weberh.stadt\desktop\test.lnk
Fehler: und wurde nicht gefunden.
c:\>

Ist mir ein flüchtigkeitsfehler unterlaufen.
Member: AndreasHoster
AndreasHoster Jul 24, 2006 at 15:02:29 (UTC)
Goto Top
Mir fällt nur gerade auf, daß im Pfad Leerzeichen sind und darum keine Gänsefüsschen.
-> shortcut -t c:\lanstartcmd.exe -n "c:\Dokumente und Einstellungen\weberh.stadt\desktop\test.lnk"
Member: fliegerx1
fliegerx1 Jul 24, 2006 at 16:00:44 (UTC)
Goto Top
Hallo nochmal
leider auch ohne Erfolg.

Wenn ich doch

shortcut -t c:\lanstart.exe -n "c:\test.lnk"

dann sollte er doch eine Verknüpfung auf c: erstellen oder?

Die datei Lanstart liegt auf der root in c:

Aber selbst das macht er nicht
Ich bin anscheind Blöd oder muss -n gegen -t getauscht werden?
Member: AndreasHoster
AndreasHoster Jul 25, 2006 at 06:14:48 (UTC)
Goto Top
Ja, da sollte er eine Verknüpfung erzeugen.
Bei mir funktioniert z.B.
shortcut -t c:\WINDOWS\system32\cmd.exe -n c:\test.lnk
und erzeugt einen Link mit Namen test (im root von C) auf die Kommandozeile.
Ich wüsste jetzt auch nicht, woran es bei Dir liegen könnte.
Mitglied: 33068
33068 Jul 27, 2006 at 17:27:16 (UTC)
Goto Top
kuckt hier rein
http://www.got2know.de.vu/
by tmp