Squashman wrote: ↑14 Jan 2022 11:42
Jedininja wrote: ↑14 Jan 2022 06:53
some things i noticed, you were trying to add ecm- to %%a before it was defined and also Defining %%a and applying %%a must happen on the same line.
This statement is just wrong.
i have personally had a lot of problems using special characters as graphic characters in echo statements, and i am admittedly super noob with for statements but i'm sure that without the usage of parenthesis the %%i's must be on the same line, i however forgot to type that, and no its not relevant to this post anyways. lol
Anyways, im not sure if i fully understand what this script was intended to do however, here is what i think it was intended to do.
Make a dir
copy folder suffixes from a file
mass make static prefix+suffix named folders
copy content from a second batch list to those folders
and then compress them
so iv been playing around with it all day attempting to figure out what it its and how to reduce it and this is where i am at right now.
Code: Select all
SET testvar1=%systemdrive%\temp\test2.txt & SET testvar2=%systemdrive%\temp2
FOR /F %%a IN (%testvar1%) DO (IF NOT EXIST %%a (MD %testvar2%\ECM-%%a) else (XCOPY /E /Y /Q %testvar1% %testvar2%\ECM-%%a))
REM call testvar.bat > makecab /v %testvar2%ECM-%%a)
REM TAR command may pipe
test2.txt is a list of stats from a character file arranged in a column.
the second
set temp folder made all the
pushd and
popd commands aswell as changing the current drive unneeded
im now trying to figure out an archive command i can pipe
%%i > archive to and hopefully defeat the need to make folders at all.