Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

bat files??

  • 26-03-2003 10:25PM
    #1
    Registered Users, Registered Users 2 Posts: 350 ✭✭


    a ? about .bat files!!!
    i want a .bat file that will copy the the location of other files from a .txt and then copy those files to say the a: drive.

    the .txt will have 'C;\winnt\myfile1.txt'
    'C;\winnt\myfile2.txt'

    it reads the txt and then copies those two files to a different location that i specify.

    cheers


Comments

  • Closed Accounts Posts: 285 ✭✭marauder


    This works in XP...

    FOR /F %%i IN (myfile.txt) DO copy %%i a:\


    do a help for at the dos prompt for details The key with this is to use %% instead of % in batch files....


Advertisement