Hallo,
ich bin schreibe gerade eine Batch-Datei, welche auf XP und Vista lauffähig sein soll.
Bei XP habe ich folgenden Pfad verwendet.
xcopy %0 "%ALLUSERSPROFILE%\Startm~1\Programme\Autostart\"
Möchte, dass etwas in den Autostart kopiert wird.
Wie ist denn nun der Pfad bei Vista, bzw. kann ich da auch mit %ALLUSERSPROFILE% arbeiten?
Grüße, BigTim
Seite 1 von 1
Autostart-pfad Bei Vista Für Eine Batch Datei
Anzeige
#2 _PelzigesWaldtier_
geschrieben 17. Mai 2007 - 13:50
Funktioniert %PUBLIC%? Das soll angeblich zu C:\Users\Public führen.
http://www.thincompu...mment.news.2512
http://www.stealthpuppy.com/blogs/travelli...orn-Server.aspx
http://www.thincompu...mment.news.2512
http://www.stealthpuppy.com/blogs/travelli...orn-Server.aspx
Dieser Beitrag wurde von PelzigesWaldtier bearbeitet: 17. Mai 2007 - 14:00
#3
geschrieben 17. Mai 2007 - 14:02
Der Pfad lautet:
"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup"
EDIT: In dem String kannst Du statt %ProgramData% auch %AllUsersProfile% benutzen, das ist egal.
"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup"
EDIT: In dem String kannst Du statt %ProgramData% auch %AllUsersProfile% benutzen, das ist egal.
Dieser Beitrag wurde von DON666 bearbeitet: 17. Mai 2007 - 14:15
Motörhead
Queens Of The Stone Age
Fu Manchu
Napalm Death
Liar
Grim Tales... ^^
SysProfile
"Is my cock big enough,
is my brain small enough
for you to make me a star?"
(Jello Biafra "Pull My Strings")
Queens Of The Stone Age
Fu Manchu
Napalm Death
Liar
Grim Tales... ^^
SysProfile
"Is my cock big enough,
is my brain small enough
for you to make me a star?"
(Jello Biafra "Pull My Strings")
#5
geschrieben 17. Mai 2007 - 16:50
Da nich für
Motörhead
Queens Of The Stone Age
Fu Manchu
Napalm Death
Liar
Grim Tales... ^^
SysProfile
"Is my cock big enough,
is my brain small enough
for you to make me a star?"
(Jello Biafra "Pull My Strings")
Queens Of The Stone Age
Fu Manchu
Napalm Death
Liar
Grim Tales... ^^
SysProfile
"Is my cock big enough,
is my brain small enough
for you to make me a star?"
(Jello Biafra "Pull My Strings")
#6
geschrieben 18. Mai 2007 - 08:46
mmh.. Tim, wieso muss man denn eine Datei in den Autostartordner per Batch verschieben? *blöd angrins*
Hast du die Abfrage jetzt mit ner IF EXIST-Abfrage gelöst?
Hast du die Abfrage jetzt mit ner IF EXIST-Abfrage gelöst?
#7 _BigTim_
geschrieben 18. Mai 2007 - 09:39
@DON666: Oh doch, vernünftige Hilfe gibt es leider immer seltener! =)
@Micha: Ja, hab ich mit ner IF Abfrage gelöst.
@Micha: Ja, hab ich mit ner IF Abfrage gelöst.
Thema verteilen:
Seite 1 von 1