i call Ed Dyreen codes a MAGICAL TALISMAN
what about this
Code: Select all
for %%G in ("%DestPath%") do set "parentdir=%%~dpG"
nothing is simple than that
Code: Select all
for %%G in ("%DestPath%") do set "parentdir=%%~dpG"
aGerman wrote:Hmm, why can't you use EXIT then? It terminates the cmd process. What else should happen?
Code: Select all
for /f "usebackq tokens=*" %%a in (file1.txt) DO (
call :file2 %%a
)
:file2
for /f "usebackq tokens=*" %%b in (file2.txt) DO (
do echo %1 %%b >>f
exit /b
)
Code: Select all
for /f "usebackq tokens=*" %%a in (file1.txt) DO (
for /f "usebackq tokens=*" %%b in (file2.txt) DO (
do echo %%a %%b >>f
)
)
Cleptography wrote: I guess that is
what powershell is for.