echo user username> ftpcmd.dat
echo password>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put c:\abc.log >> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat my.ftp.host.
TIMEOUT /T 60
I am trying to put a file named "abc.log" located in c:\ to my ftp. now when I put this .bat file on desktop and run it , it creates a file named ftpcmd.dat (temporarily) in the same directory where my file "abc.log" is but when i place this .bat file in some other drive ( say D:\) and run it it creates ftpcmd.dat in D:\ drive itself and not in C:\ where my abc.log is.
PLEASE HELP it is required urgently for my college project
Edited by Taran22, 23 October 2013 - 02:35 AM.