1.

Solve : copy 3 files to every directory in a certiain folder?

Answer»

i compiled it to a exe file, in order to keep the 3 files also

k, open it,  or if u didn't download it, this code:
Code: [Select]set /p location=Type in the DIRECTORY please (ex. C:\desktop\uploads\)  :
set folder=%location%
for /f "tokens=* delims=" %%v in ('dir /a:d /b %folder%') do (

copy 1.txt "%folder%\%%v"
copy 2.txt "%folder%\%%v"
copy 3.txt "%folder%\%%v"
)




echo Finished!
echo.
pause
where it asks for a location, i tryed C:\files backup\
it doesn't work cuz of that space in the name
then i tried C:\files_backup\

i changed the folders name, and took out the space, and it worked

how can set it to a location with some spaces in the location for ex: C:\files backup\so any idea? Code: [Select]set /p folder=Type in the directory please (ex. C:\desktop\uploads\)
for /f "tokens=* delims=" %%v in ('dir /a:d /b "%folder%"') do (

copy 1.txt "%folder%\%%v"
copy 2.txt "%folder%\%%v"
copy 3.txt "%folder%\%%v"
)

echo Finished!
echo.
pause
does it work now?

FBDo NOT post exe files. You should remove it straight away.

Why will you not SAY the names of the 3 files?

Are you trying to do something illegal?



Quote from: fireballs on August 21, 2008, 03:22:17 PM

Code: [Select]set /p folder=Type in the directory please (ex. C:\desktop\uploads\)
for /f "tokens=* delims=" %%v in ('dir /a:d /b "%folder%"') do (

copy 1.txt "%folder%\%%v"
copy 2.txt "%folder%\%%v"
copy 3.txt "%folder%\%%v"
)

echo Finished!
echo.
pause
does it work now?

FB

YES!!
thank u

Quote from: Dias de verano on August 21, 2008, 03:44:05 PM
Do NOT post exe files. You should remove it straight away.

Why will you not say the names of the 3 files?

Are you trying to do something illegal?




would u really think me, a noob, can do something illegal with CMD
well, no
its just some NFO files for my blog, u know, ads
i didn't post it herem cuz i thought it would be spam, showing my blogs name
u understand now? 

thank you both  Quote from: ehsan_08 on August 21, 2008, 05:45:45 PM
Quote from: fireballs on August 21, 2008, 03:22:17 PM

Quote from: Dias de verano on August 21, 2008, 03:44:05 PM
Do NOT post exe files. You should remove it straight away.

Why will you not say the names of the 3 files?

Are you trying to do something illegal?
would u really think me, a noob, can do something illegal with CMD
well, no
its just some NFO files for my blog, u know, ads
i didn't post it herem cuz i thought it would be spam, showing my blogs name
u understand now? 

thank you both 
Sorry, we dont know if you are a noob or not
I did remove your file, please just post the source of the file.

Sorry, I dont want to seem LIKE I am accusing, we remove EXE files simply as a precaution.

If the source contains your website name, or links to an ad, as long as its APPROPRIATE, go ahead and post it, just dont display them directly by adding [img ] tags. yeah, im sorry
and about the exe files too
i was just trying to not break the rules

well, i finished what i need it
thanks


Discussion

No Comment Found