If I launch a simple bat file from a path on a network:
\\WinSrv\cr5\Dept400\me\Testing\batFiles\
then the bat executes goes to a Unix path and grabs a file (my question is this) it should then place it in here:
\\WinSrv\cr5\Dept400\me\Testing\batFiles\
Since that was where the bat file was launched from
? But I am not getting that result. Testing it in the C:\ it worked fine from the WinSrv path it did not work.
Is there a better way?
notes: %1 = userID, %2 = userPW, %3 = fileName
Echo %1> ftpcmd.txt
echo %2>> ftpcmd.txt
echo ascii>> ftpcmd.txt
echo prompt n>>ftpcmd.txt
echo cd /unixPath1/parts/parts2/b/xm/data/>> ftpcmd.txt
echo get %3>> ftpcmd.txt
echo bye >> ftpcmd.txt
ftp -s:ftpcmd.txt 100.11.100.01
del ftpcmd.txt
ren \\WinSrv\cr5\Dept400\me\Testing\batFiles\%3 %3.txt
quit
btw this is a really nice forum! It's got a different look and feel to it........nice job!