I'm trying to write a batch file to run a command line on all of the files in a directory structure and copy the resulting outputs to the same structure but at an alternate root
ie
batch file located at c:\one\two
file to process located at c:\one\two\three\four\five.extension
I want to move the output file five.extension2 now located at c:\one\two\three\four
to new location %NEW_PATH%\three\four
~dp0 will give me the batch path (c:\one\two)
~f will give me the full file path for five.extension (c:\one\two\three\four\five.extension)
~n gives the file name I care about (five)
but I can't seem to find a way to parse out the "\three\four" for the move command (%NEW_PATH%\three\four)
any help would be appreciated
ie
batch file located at c:\one\two
file to process located at c:\one\two\three\four\five.extension
I want to move the output file five.extension2 now located at c:\one\two\three\four
to new location %NEW_PATH%\three\four
~dp0 will give me the batch path (c:\one\two)
~f will give me the full file path for five.extension (c:\one\two\three\four\five.extension)
~n gives the file name I care about (five)
but I can't seem to find a way to parse out the "\three\four" for the move command (%NEW_PATH%\three\four)
any help would be appreciated