Search found 80 matches

by RElliott63
10 Feb 2009 14:58
Forum: DOS Batch Forum
Topic: batch on-screen and logged to textfile?
Replies: 4
Views: 7186

This is probably more than you're looking for, but it's a start: I usually just log everything with a call to a :JobLog procedure This allows me to do something like... Set JobLog=\BKOffice\CSK\CSKZip.Log ... Call :JobLog H If NOT Exist FileName.exe ( Call :JobLog D " *** ERROR *** " C...
by RElliott63
10 Feb 2009 11:47
Forum: DOS Batch Forum
Topic: Some MS-DOS Progs not working after hd put in new Compu
Replies: 3
Views: 5966

It's just a guess, but you might want to check the Root Folder and look for a Config.sys file. It might have a "FILES=" or other commands that are directly related to running that program.
by RElliott63
05 Feb 2009 09:25
Forum: DOS Batch Forum
Topic: problems with spaces for variable
Replies: 1
Views: 4158

This should get you started. It's similar to my issue in another thread: SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION Attrib /s > Attrib.List For /F "Delims=" %%F In (Attrib.List) DO ( Set "f=%%~nxF" Set "p=%%~pF" CD /D "!p!" Copy !f! ...
by RElliott63
05 Feb 2009 09:11
Forum: DOS Batch Forum
Topic: Split directory name & filename from a string
Replies: 4
Views: 34905

Thanks for the advice. After playing around with it yesterday afternoon, I ended up with the following: Set LookUpSet=Dir /b/s File1* File2 File3* For /F "Delims=" %%F In ('%LookUpSet%') DO ( Set "f=%%~nxF" Set "p=%%~pF" CD /D "!p!" Call :LogMsg &q...
by RElliott63
04 Feb 2009 10:37
Forum: DOS Batch Forum
Topic: Split directory name & filename from a string
Replies: 4
Views: 34905

Along those same lines... what is the easiest way to deal with looping through a directory set that includes spaces (ie "Documents and Settings")? I have a situation where I need to find specific files (wildcard search) on a drive to do a secure delete on these specific files. I know I can...