GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   windows script that copy one file into multiple folders ?? (https://gfy.com/showthread.php?t=591515)

zentz 03-27-2006 04:35 PM

windows script that copy one file into multiple folders ??
 
Is there maybe a script that will automaticly copy one file in mulitple folders and subfolders ?

i have to put one .html file into the hundreds of folders and it would be awesome if there is an easier way to do so...

zentz 03-27-2006 05:20 PM

bump bump

jjjay 03-27-2006 05:24 PM

dir *.* /ad /b > list.txt (going from memory - this lists all folders and puts them in a text file

then just do a wildcard search and replace using textpad to add "copy filename" to the start of each line

then rename text file to file.bat

then double click it

zentz 03-27-2006 05:36 PM

Quote:

Originally Posted by jjjay
dir *.* /ad /b > list.txt (going from memory - this lists all folders and puts them in a text file

then just do a wildcard search and replace using textpad to add "copy filename" to the start of each line

then rename text file to file.bat

then double click it

nice!! do you know how to bulk delete all the *.mpeg files also ?

HorseShit 03-27-2006 05:39 PM

Quote:

Originally Posted by zentz
nice!! do you know how to bulk delete all the *.mpeg files also ?

format c:

jjjay 03-27-2006 05:42 PM

Quote:

Originally Posted by zentz
nice!! do you know how to bulk delete all the *.mpeg files also ?

use windows search

press f3 in windows explorer

search for *.extension

select all

delete

zentz 03-27-2006 05:44 PM

Quote:

Originally Posted by jjjay
use windows search

press f3 in windows explorer

search for *.extension

select all

delete

nice.. about that list.txt thing.. it will create only the list of folders but i need the subfolders included too.. any ideas ?

jjjay 03-27-2006 06:03 PM

Quote:

Originally Posted by zentz
nice.. about that list.txt thing.. it will create only the list of folders but i need the subfolders included too.. any ideas ?

add /s as a switch

if you go to dos and type dir /? it'll give you more info


All times are GMT -7. The time now is 02:08 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123