[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] DOS Batch file
> for %a in (*.*) do move %a some_other_directory
That'd move everything in the directory .. it'd be okay if the "(*.*)" bit
was replaced by "(read in all the filenames from a specific file)".
What I want is for the batch file to read in a text file (which contains a
list of filenames) and move each of those files elsewhere.
I can't even do the 'batch job creates a batch job on the fly and runs it'
routine where my script just writes move commands to another batch file. The
trouble lies in reading the text file line by line and sticking a "MOVE" on
one side, and a directory on the other. And if the Windows Shell can't do
that, then it's pissweaker than I thought.
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to email@example.com.
If you are having trouble, ask firstname.lastname@example.org for help.