Kommandozeile soll Webseite in FF starten?
Hallo,
die letzten beiden Zeilen sollen die Datei "Startseite.dat" (in Ordner auf Desktop) in "FirefoxLoader.exe" (liegt direkt auf Desktop) starten:
mkdir "%USERPROFILE%\Desktop\Firefox"
mkdir "%USERPROFILE%\Desktop\Profilordner"
xcopy Profilordner "%USERPROFILE%\Desktop\Profilordner" /E /H /V /Y
xcopy Firefox "%USERPROFILE%\Desktop\Firefox" /E /H /V /Y
xcopy FirefoxLoader.exe "%USERPROFILE%\Desktop" /E /H /V /Y
xcopy "Startseite.dat" "%USERPROFILE%\Desktop\Firefox" /E /H /V /Y
start "%USERPROFILE%\Desktop\Firefox\Startseite.dat" "%USERPROFILE%\Desktop\FirefoxLoader.exe" /MAX
Das Kopieren klappt wunderbar. Auch FF_Loader startet perfekt.
Leider wird dabei nicht die gewünschte Datei "Startseite.dat" angezeigt, sondern lediglich eine leere Seite.
Was mache ich falsch?
Gruß
Thomas
Antwort schreiben
Antwort 1 von Flupo vom 18.01.2020, 15:30 Options
Probiers mal mit
"%USERPROFILE%\Desktop\FirefoxLoader.exe" /MAX %USERPROFILE%\Desktop\Firefox\Startseite.dat
(alles in einer Zeile)
Um den Code etwas übersichtlicher zu gestalten würde ich ins Desktop-Verzeichnis wechseln und von hier aus arbeiten.
mkdir "%USERPROFILE%\Desktop\Firefox"
mkdir "%USERPROFILE%\Desktop\Profilordner"
xcopy Profilordner "%USERPROFILE%\Desktop\Profilordner" /E /H /V /Y
xcopy Firefox "%USERPROFILE%\Desktop\Firefox" /E /H /V /Y
xcopy FirefoxLoader.exe "%USERPROFILE%\Desktop" /E /H /V /Y
xcopy "Startseite.dat" "%USERPROFILE%\Desktop\Firefox" /E /H /V /Y
cd %USERPROFILE%\Desktop
FirefoxLoader Startseite.dat /MAX
Mit dem "normalen" FF geht es so.
Gruß Flupo
Antwort 2 von fritz-franz vom 19.01.2020, 18:26 Options
super, danke für die schnelle, kompetente Antwort ;-)
Gruß
Thomas