Search found 8 matches
- 26 Mar 2015 10:36
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
foxidrive; That is pretty awesome. That worked great too (as well as the robocopy options). I just don't understand how. The literal script I used is: @echo off (for /D %%a in (M:\CASES\*) do ( for %%b in ("%%a\Project.ini?") do echo("%%a\Project.ini" for /D %%c in ("%%a\*&q...
- 25 Mar 2015 12:17
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
Someone gave me that code, so I'm not sure why it is like that - but it worked. I had to manipulate the output log afterward for what I needed from it though, so the simpler version is much better.
- 25 Mar 2015 12:03
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
Yessir. Actually, yours is the simple version I was looking for. Thanks!! I got it to work using: @echo off SetLocal :: script name with extension SET BAT_NAMEX=%~nx0 :: script name without extension SET BAT_NAME=%~n0 TITLE %BAT_NAMEX% :: prepare date/time stamp FOR /f "Tokens=1-4 Delims=/ &quo...
- 25 Mar 2015 09:29
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
The results I got from your script gave me this output: Folder1 Folder2 Folder3 Project.ini Folder4 Folder5 Folder6 Folder... It listed tons of the folders (but not all of them), and it did not list them as a full path output with the filename appended like you suggest it should. It only listed 4 pr...
- 24 Mar 2015 15:55
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
That lists most of the folders, but not all of them. There are some folders that do not have the "project.ini" file in there, but I checked, and some that do have the INI file were not listed in the output from your script. It did run very quickly, so I am guessing it did limit the scan to...
- 24 Mar 2015 15:08
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
Inside the "M:\Cases\" folder I am working with, there are 1,200+ folders that each contain a "project.ini" file (at that level, or one level further in). I just need a list of the files that exist. Inside those 1,200+ folders there are thousands of sub-folders which is why I hav...
- 24 Mar 2015 12:33
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
Re: DIR of only specific levels
Yes. Over a LAN in an office environment.
- 24 Mar 2015 11:12
- Forum: DOS Batch Forum
- Topic: DIR of only specific levels
- Replies: 15
- Views: 21528
DIR of only specific levels
I am trying to get a list of all of the "project.ini" files in a directory on our network. The problem is that all of these files are only 1 or 2 levels deep in that directory, so when i run: "dir /a-d /s /b M:\Cases\*Project.ini > DIR.txt" - it works, but might take all day. The...