Search found 5 matches

by stevehero
02 Apr 2020 05:55
Forum: DOS Batch Forum
Topic: Echoing variables with colouring problem for filenames or directories
Replies: 2
Views: 1169

Re: Echoing variables with colouring problem for filenames or directories

Thank you. I've tried that and it works. Although with the character limit I'll probably end up not bothering with it and just stick with plain old colours. I quite like the PowerShell way too. I've modified the code on that same thread of skrebbels ' code. https://stackoverflow.com/a/12894047/82621...
by stevehero
01 Apr 2020 15:16
Forum: DOS Batch Forum
Topic: Echoing variables with colouring problem for filenames or directories
Replies: 2
Views: 1169

Echoing variables with colouring problem for filenames or directories

I've taken this code from StackOverflow written by Jeb: https://stackoverflow.com/a/5344911/8262102 It works great for simple text but I cannot get it to work for echoing filenames or directory variables in the code below. The error I'm getting is FINDSTR: Cannot open Directory... The report fileLis...
by stevehero
31 Mar 2020 13:02
Forum: DOS Batch Forum
Topic: % in file list causing issues with call :command
Replies: 4
Views: 1538

Re: % in file list causing issues with call :command

Oh, thanks to you two I have a somewhat better understanding of how SetLocal EnableDelayedExpansion, SetLocal and EndLocal work in general.
by stevehero
30 Mar 2020 15:35
Forum: DOS Batch Forum
Topic: % in file list causing issues with call :command
Replies: 4
Views: 1538

Re: % in file list causing issues with call :command

Thanks, jeb. Greatly appreciated.

That may be what was causing another issue I had:
Maximum setlocal recursion level reached.
by stevehero
29 Mar 2020 15:51
Forum: DOS Batch Forum
Topic: % in file list causing issues with call :command
Replies: 4
Views: 1538

% in file list causing issues with call :command

I'm having an issue with a list of files that contain the % sign. The % sign of any files are getting eaten up when I do the call :PROCESS_FILES "%%~D" The contents of the file.txt is the following: "Z:\Folder 100%\filename 01.doc" "Z:\Folder 100%\filename 02.doc" "Z:\Folder 100%\filename 01.doc" "Z...