1
我遇到了批處理文件的問題。我有第一批文件運行的2個文件,它創建目錄並複製所需的文件。它似乎正確調用第二個批處理文件,因爲它會打開instructions.txt,但它會停止。我將從CD運行第一批文件,然後從C:\ testing文件夾運行dbinstall.bat。寫一個批處理文件來調用另一個批處理文件並安裝一個程序
這是我的setup.bat
@echo off
md "C:\testing"
xcopy *.* C:\testing
CALL "C:\testing\dbinstall.bat"
這反過來應該調用並運行此
REM ***PLEASE REPLACE %DWVerFileName.exe WITH THE PROPER VERSION OF THE EXE FILE***
REM ***MAKE SURE THE 7z FILE INCLUDES THE CUSTOMER NAME AND THEN CHANGE %filename%.7z TO THE FILE NAME***
CALL "C:\testing\Instructions.rtf"
start /b /wait "C:\testing\7z423.exe"
SET AppExePath="%ProgramFiles(x86)%\7-zip\7z.exe"
IF NOT EXIST %AppExePath% SET AppExePath="%ProgramFiles%\7-zip\7z.exe"
%AppExePath% e database.7z
start /b /wait "setup.exe"
SQLCMD -E -S touch -Q "RESTORE DATABASE testing FROM DISK='C:\testing\database.bak'"
我堅持和任何幫助,將不勝感激。由於
你批量收到了什麼錯誤? – Alderven 2014-10-28 14:50:57