unix - How to run a text file using a batch file? -


i have text file"ftpxm.txt" has code

open unix.server.com   user namepwd  cd /home/20150715/crediting/ find -name xmp*17357*|tar -rf /home/tar/my_tar.tar bye 

how should run code?

i used bat file 'xml.bat' looks

c: c:\users\manoj\documents\ ftp -v -n -s:c:\users\manoj\documents\ftpxm.txt 

the batch running not able see tar file in destination.

is there other way accomplish ?

i think .bat file wrong. not sure guess so.

thanks in advance.

use cd change directory (add /d change drive too):

cd /d c:\users\manoj\documents\ ftp -v -n -s:ftpxm.txt 

Comments