0
我有批處理文件,我不知道shell腳本。 有人可以幫助這裏。 將批處理文件轉換爲shell腳本文件
@echo off
echo "Program Name :" %0
rem echo "Next param :" %1
echo "Next param :" "Username/Password"
echo "User Id :" %2
echo "User Name :" %3
echo "Request ID :" %4
echo "File Name :" %5
echo "Entity Name :" %6
echo "Email Address :" %7
echo "Extract ID :" %8
echo "path name :" %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"
謝謝。
閱讀任何[殼教程](http://www.grymoire.com/Unix/Sh.html)試着寫劇本,帶着一個具體的問題來到這裏。 – khachik 2013-02-26 07:44:57
當我看到這個問題時,在右邊我看到很多類似的問題,你可以參考。 – FooF 2013-02-26 08:00:49