我有批处理文件,但我不知道 shell 脚本。有人可以在这里帮忙吗。
@echo 关闭
回显“程序名称:”%0
rem echo "下一个参数:" %1
echo "下一个参数:" "用户名/密码"
回显“用户 ID:”%2
回显“用户名:”%3
echo "请求 ID:" %4
echo "文件名:" %5
回显“实体名称:”%6
echo "电子邮件地址:" %7
echo "提取 ID:" %8
echo "路径名:" %9
cd %9
echo "Process Output files"
IF NOT EXIST C:\OraOutput GOTO MAPERROR
IF EXIST o%8.out (COPY o%8.out %5.csv) ELSE echo "Output file does not exists"
IF EXIST %5.csv (MOVE %5.csv C:\OraOutput\%5.cvs) ELSE echo "Could not move file to Share Drive"
GOTO ENDPROCESS
:MAPERROR
echo "The Share Directory has not been mapped Contact your System Administrator"
EXIT -1
:ENDPROCESS
echo "Process finished goodbye"
谢谢。