Search found 6 matches

by haywoodjim
20 Nov 2013 08:28
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Re: Batch file to search cached profiels for local data

Ok, I have removed the 8 from the two delims=* and get the same results still. Also tried those two commands, so a:d lists folders and a:-d lists files too? Interesting, although how does this help me exclude the "software resources" folder from my scan? For now I've achieved what i wanted...
by haywoodjim
20 Nov 2013 07:25
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Re: Batch file to search cached profiels for local data

OK I've done it, it was indeed that section causing the problems. here is the working code: @echo off :***************************************************************************************** set core=c:\users\public\desktop :*************************************************************************...
by haywoodjim
20 Nov 2013 07:00
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Re: Batch file to search cached profiels for local data

I pressume it's this section that is causing the problem; for %%b in ("!custom!\*.*") do ( if exist "%core%\%%~nxb" title scanning !sn! if not exist "%core%\%%~nxb" echo. & echo !sn! - Unexpected File Detected>>RESULTS.TXT & echo "%%b">>RESULTS.TXT )
by haywoodjim
20 Nov 2013 06:58
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Re: Batch file to search cached profiels for local data

OK. That's a valid point. There is no reason for EOL being set to : Here is a modified code I have tried which includes the /s for the dir commands and removes the EOL. For the purpose of testing this simplified version just checks all users desktops for any desktop content that is not in C:\Users\P...
by haywoodjim
20 Nov 2013 05:17
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Re: Batch file to search cached profiels for local data

Haha. So it does. My actual script never uses the %logonserver% variable as I find it can cause problems. I just bunged that in there for the purpose of this post. (for testing on standalone machines I normally set core as C:\users\public\desktop) I have tried the following; set folderCt=0 for /f &q...
by haywoodjim
19 Nov 2013 09:07
Forum: DOS Batch Forum
Topic: Batch file to search cached profiels for local data
Replies: 11
Views: 4156

Batch file to search cached profiels for local data

I am trying to create a script that scans cached user desktops against a copy of expected desktop icons looking for unexpected files and folders. I have managed to get the script to function but it only finds files and is not able to find folders. Domain users have a predefined set of desktop icons ...