Search found 4 matches

by necron99
17 Oct 2015 13:26
Forum: DOS Batch Forum
Topic: Single line DOS commands and echoing formatted output
Replies: 6
Views: 6195

Re: Single line DOS commands and echoing formatted output

oopppsss...noticed a problem. What happens when there's a space in the file name or path for either of these command lines? surprisingly we've had that happen. Here's how I've changed the above examples to support what I'm trying to do. Notice the space in the directory name in the first example and...
by necron99
17 Oct 2015 13:13
Forum: DOS Batch Forum
Topic: Single line DOS commands and echoing formatted output
Replies: 6
Views: 6195

Re: Single line DOS commands and echoing formatted output

Yep, that did the trick!

You dropped a ' on the second one and I had to switch out ! with % on the num at the end but other than that it works great - thanks!
by necron99
17 Oct 2015 10:18
Forum: DOS Batch Forum
Topic: Single line DOS commands and echoing formatted output
Replies: 6
Views: 6195

Re: Single line DOS commands and echoing formatted output

Sorry...here's the first command I found that will generate the file count. Right now it just spits out a number which doesn't meet my requirement for formatted output. dir /b/a-d "*.txt" | find /v /c "::" and the second that determines the existence of a directory is just a 'dir...
by necron99
17 Oct 2015 09:34
Forum: DOS Batch Forum
Topic: Single line DOS commands and echoing formatted output
Replies: 6
Views: 6195

Single line DOS commands and echoing formatted output

I have a requirement for a project I'm working on at my job that requires some serious DOS programming skills that I am lacking and was hoping someone would be able to come up with a solution. #1 A single DOS command line that can determine if a directory exists and echo [DIRECTORY_EXISTS=true] or [...