我有一个批处理文件,它将执行以下操作
ansi
转换为utf8
编码当我手动运行批处理文件(双击批处理文件)时,上述操作表现良好且符合预期。
当我通过任务计划程序运行批处理文件时,
有人有想法解决这个问题吗?谢谢
批处理文件内容如下:
@echo off
PowerShell.exe -Command "& 'D:\PeopleData\META\Scripts\encode_to_utf8.ps1'"
echo The program will wait 20 seconds before continuting, interrupted by the user
timeout /t 20
cscript.exe D:\PeopleData\META\Scripts\compress_csv.vbs"
echo The program will wait 100 seconds before continuting, interrupted by the user
timeout /t 100
START D:\PROGRA~2\WinSCP\winscp.exe /console /script=D:\PeopleData\META\Scripts\Itsm_to_sftp.txt
Exit