Search found 31 matches
- 17 Jul 2015 10:30
- Forum: DOS Batch Forum
- Topic: Help with copying file to \sub\subdirectory
- Replies: 4
- Views: 5858
Re: Help with copying file to \sub\subdirectory
You're right, that folder doesn't exist. That was the cause.
- 17 Jul 2015 07:48
- Forum: DOS Batch Forum
- Topic: Help with copying file to \sub\subdirectory
- Replies: 4
- Views: 5858
Re: Help with copying file to \sub\subdirectory
Thanks Yury! I had to modify it to the following to get it to work properly. Your version immediately closed the command prompt without creating the subfolder or copying the TXT file... @echo off pushd "d:\files" for /f "delims=" %%a in ('dir/ad/b') do ( xcopy/y "*.txt"...
- 16 Jul 2015 06:41
- Forum: DOS Batch Forum
- Topic: Help with copying file to \sub\subdirectory
- Replies: 4
- Views: 5858
Help with copying file to \sub\subdirectory
I've got a series of folders with a TXT file sitting in the top level folder, like so: toplevel\ toplevel\info.txt toplevel\subdir-01\ toplevel\subdir-02\ toplevel\subdir-03\ I need to do 2 things.. The first is to create a 'readme' folder in each of the subdirs, and then copy info.txt from \topleve...
- 17 Jun 2015 10:53
- Forum: DOS Batch Forum
- Topic: Need help with appending multiple dir commands
- Replies: 2
- Views: 3615
Re: Need help with appending multiple dir commands
I had a feeling it was something simple, thank you!
m1
m1
- 17 Jun 2015 09:02
- Forum: DOS Batch Forum
- Topic: Need help with appending multiple dir commands
- Replies: 2
- Views: 3615
Need help with appending multiple dir commands
I've got this batch file which grabs a list from all subdirectories and then opens that list in TedNotepad. What I can't figure out is how to filter multiple wildcards.. each new line overwrites the previous so only the last one shows up. This is what I works: @echo off dir /b /s "output*-*-*.r...
- 22 Jan 2015 23:34
- Forum: DOS Batch Forum
- Topic: Help with moving filetype recursively
- Replies: 2
- Views: 3015
Re: Help with moving filetype recursively
Thanks, will give it a try!
- 22 Jan 2015 17:16
- Forum: DOS Batch Forum
- Topic: Help with moving filetype recursively
- Replies: 2
- Views: 3015
Help with moving filetype recursively
I've got a top level folder with many subfolders. Inside each of those subfolders are several .bak files. How do I go about running a batch script from the top level folder, which will find all .bak files in each subfolder and then move those .bak files into a "backup" subfolder inside eac...
- 14 Apr 2014 18:34
- Forum: DOS Batch Forum
- Topic: Batch file to rename while copying to subdir
- Replies: 4
- Views: 4786
Re: Batch file to rename while copying to subdir
Awesome, thank you, I'll try this out in the morning!
- 11 Apr 2014 12:25
- Forum: DOS Batch Forum
- Topic: Batch file to rename while copying to subdir
- Replies: 4
- Views: 4786
Re: Batch file to rename while copying to subdir
Hmm, yes it would be safest if it only looked in top-level folders, i.e. toplevel\ (script is run here) toplevel\sublevel\ (images copied from here) toplevel\sublevel\subsublevel\ (images ignored here) Your second suggestion is a good one. The chances that two images with different extensions would ...
- 09 Apr 2014 13:31
- Forum: DOS Batch Forum
- Topic: Batch file to rename while copying to subdir
- Replies: 4
- Views: 4786
Batch file to rename while copying to subdir
I've got a batch file which was created with help from forum members here a while ago. The script travels recursively from a top level folder, and in each subfolder it finds files with specific extensions and copies them to a subdirectory called 'rsrc'. What I'm trying to do now is make this script ...
- 04 Jan 2014 10:53
- Forum: DOS Batch Forum
- Topic: Help w/ batch file to output dir listings in subdirectories
- Replies: 2
- Views: 3031
Re: Help w/ batch file to output dir listings in subdirector
Very nice, thanks for that. It works great! I wonder, is there any way to eliminate the 'higher' level directories from what is recorded in the output file? For example, if the batch is run from: e:\Archive\Images\January\ and it's recording the following path, as an example: e:\Archive\Images\Janua...
- 03 Jan 2014 14:59
- Forum: DOS Batch Forum
- Topic: Help w/ batch file to output dir listings in subdirectories
- Replies: 2
- Views: 3031
Help w/ batch file to output dir listings in subdirectories
I've got a folder hierarchy in which I need to create a directory listing inside each main folder, showing the result of "dir /b /s *.* > index.txt". For example, in root folder root folder\main_folder_1\some_more_subfolders\files root folder\main_folder_2\some_more_subfolders\files I need...
- 17 Apr 2013 12:56
- Forum: DOS Batch Forum
- Topic: Need help with opening text file in custom app
- Replies: 2
- Views: 3094
Re: Need help with opening text file in custom app
Awesome, works beautifully. Thank you!
- 17 Apr 2013 07:12
- Forum: DOS Batch Forum
- Topic: Need help with opening text file in custom app
- Replies: 2
- Views: 3094
Need help with opening text file in custom app
I've got part of a batch file I'm trying to use to do 2 things, the first is to grab a recursive directory listing of specific files in a folder structure, and the second is to open the resulting text file in a specific text editor. The problem I'm having is the path of the text file isn't being rec...
- 10 Dec 2012 08:35
- Forum: DOS Batch Forum
- Topic: How to create a folder inside all first-level subfolders?
- Replies: 19
- Views: 16327