简体   繁体   中英

individual command running but not batch file

I have the below command which runs perfectly fine on command prompt

start "heythere" "c:\script\ABC.XYS.CreateXML.exe" -SiteCollectionUrl:"http://site-prd" -TargetPath:"C:\destFolder" -LoginName:"GLOBAL\username"

However when I save the exaack command in a batch file and execute it, it doesn't run at all

I really can't figure out the problem.

I finally figured it out. As the contents of the file were generated via code, there were issues with its encoding. Thus changing the encoding to ASCII solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM