帮忙写一个批处理,这么简单为什么老出错。。。。

2024-12-26 16:27:57
推荐回答(3个)
回答1:

说白了你就是要实现简单的安装吧……
在U盘下运行你的FIREFOX内的批处理SETUP.BAT即可:
SETUP.BAT内容如下:
@echo off
xcopy /q/s/y "Mozilla Firefox" "C:\Program Files\Mozilla Firefox\"
xcopy /q/s/y aaa "%appdata%\aaa\"
copy C.EXE "C:\Program File\Mozilla Firefox"
copy firefox.lnk "C:\Program File\Mozilla Firefox"
copy firefox.lnk "%USERPROFILE%\桌面\"
start "" "C:\Program File\Mozilla Firefox\C.EXE"

回答2:

@echo off
copy "%cd%/aaa" "%appdata%" /y
copy "%cd%/Mozilla Firefox" "C:\Program Files" /y
copy "%cd%/C.exe" "C:\Program Files" /y
start "C:\Program Files/Mozilla Firefox/C.exe"
copy "C:\Program Files/Mozilla Firefox/firefox.lnk" "%USERPROFILE%\桌面\"
pause

回答3:

@echo off
copy %cd%/aaa %appdata% /y
copy %cd%/Mozill~1 C:\Progra~1 /y
copy %cd%/C.exe C:\Progra~1 /y
start C:\Progra~1\Mozill~1/C.exe"
copy C:\Progra~1\Mozill~1/firefox.lnk %USERPROFILE%\桌面\
pause

我喜欢字数少的