Its Worked!Thanks a Lot Mate

. However there's a new problem, I am trying to write a shell script to run ftp process as a exe file. The problem is the commands r working fine in the unix mode but they r not working when the system enters ftp mode. Say this is the following code
ftp 10.80.20.38
bin
hash
prompt off
cd test
put
-------------------
I want to change the directory on the remote machine before putting the files there. However none of these commands work other than the ftp command, it logs me on to the remote machine(since I have enabled .netrc file), but thats it. I hope some body can help me.