Quote:
Originally Posted by newuser85
Hi,
When I tried to echo pwd got the below
+ read FName
++ pwd
+ echo none\d\lsenv\law\bin
/+ '[' '!' -d archive ']'
thanks
|
Not "echo pwd", just "pwd".
I do wonder what command you used to get this output; echo $(pwd) perhaps? In this case, the current directory of the script is not d:/.../AMEXREMIT, and your script will therefore not work.
Since I know neither context nor environment, I can't give you good tips what to do to fix this. However, try including a
cd d:/.../AMEXREMIT before the read command or near the beginning of the script.