Passing arguments to a batchfile from a .txt file RRS feed

  • Question

  • I have a batch file, 

    X.bat which creates the ftpparam.txt file.

    It has a argument %1, I want to pass the value for thsi from the data in FILELIST.DAT. The dats in it is :---------- MALCOLM_201306120023.EXP


    set arg1=%1

    set arg2=/processed/%1

    IF EXIST ftpparam.txt DEL ftpparam.txt

    echo open>>ftpparam.txt
    echo minddump>>ftpparam.txt
    echo ilbEidFocpikGel0>>ftpparam.txt
    echo binary>>ftpparam.txt
    echo prompt n>>ftpparam.txt
    echo cd />>ftpparam.txt
    echo rename %arg1% %arg2%>>ftpparam.txt
    echo bye>>ftpparam.txt


    • Moved by Bill_Stewart Monday, December 30, 2013 10:18 PM Abandoned thread
    Wednesday, September 18, 2013 12:09 PM

All replies

  • Don't forget to ask your question.


    Wednesday, September 18, 2013 2:22 PM