View Full Version : TDS-3 CRC FILES
Eliot
August 8th, 2003, 03:18 PM
Is it possible to add a whole directory (ie. c:\folder\*.*) to the CRC check?
Jooske
August 8th, 2003, 03:54 PM
Hm never tried, maybe as C:\directory with or without the *.* Would try both ways and see what happens.
You could make a folder with some files, add it in thjat way and make some changes in some individual files in the folder (directory in fact) and see if there are alarms and if so which.
Question is of course if you put a whole folder or directory in CRC if you would know which files were changed if you would not put all individual files under control too! I would like to know if files disappeared or were added and if files themselves were changed somehow and which.
Sorry for not being able yet to give a concrete answer this moment before trying it out! Not seeing it in the Helpfile either.
Andreas1
August 9th, 2003, 07:02 AM
otherwise try from the commandline (replacing the paths in question):
dir c:\*.* >> c:\tdsdir\config\crcfiles.txt
HTHH,
Andreas
FanJ
August 9th, 2003, 07:27 AM
I never tried it that way.
But it can be done with the help of PowerDesk Pro from V-COM (formerly Ontrack).
Using PowerDesk:
open PowerDesk;
go to that directory;
click in PowerDesk: Edit > Select All (to select all the files in that directory);
click in PowerDesk: Edit > copy path as text;
then paste them into your crcfiles.txt
Andreas1
August 12th, 2003, 07:29 AM
...right! i forgot: dir c:\*.* won't give pathnames, so what i posted above will not work - unless there's a commandline switch for dir that makes it deliver full pathnames. don't know if there is one...
sorry.
Andreas
Jooske
August 12th, 2003, 08:17 AM
... which will require some scripting like in this example
(calling the API function residing in the kernel32.dll
GETFULLPATHNAME (string filename, numeric buflen, string buffer, numeric filepart)
lv_filename = "test.html"
; note that lv_FullPath must be pre-initialised with spaces
lv_FullPath = " "
activate "winapi".getfullpathname(lv_filename, 128, lv_FullPath, 0)
(lv_fullpath now contains "F:\UNIFACE\7206\sample\test.html")
it will need some extra feeding for filenames etc in a nice script, adding the results to a list which can be copied to wherever we want.
More nice examples here (http://www.marston-home.demon.co.uk/Tony/uniface/tip48.html)
Andreas1
August 12th, 2003, 12:11 PM
Hi all,
it does work after all:
see here:
C:\>dir c:\programme\apps\grafik\PSP\*.exe /B /S
c:\programme\apps\grafik\PSP\anim.exe
c:\programme\apps\grafik\PSP\junreg.exe
c:\programme\apps\grafik\PSP\psp.exe
c:\programme\apps\grafik\PSP\Register.exe
c:\programme\apps\grafik\PSP\tubeconverter.exe
maybe it's important that you're in the root directory before you enter the command. The "/S" switch makes it recurse into subdirectories and thereby specifying what directory it's currently in - even if there's no subdir. If you have subdirectories you want not to include maybe that's a problem. If you want to match everything (*.*), you can exclude directory names with "/A:-D"...
Here's the command again:
dir c:\programme\apps\grafik\PSP\*.* /A:-D /B /S >> c:\apps\tds\config\crcfiles.txt
hope it works for you.
Cheers,
Andreas
FanJ
August 12th, 2003, 07:39 PM
BIG karma cookie for you Andreas ;)
Andreas1
August 13th, 2003, 02:20 AM
thanks, Jan
maybe it depends on the DOS/cmd.exe version used, but it works on my win2k pro comp.
If it doesn't on some other system, maybe we can build a workaround...
Cheers,
Andreas
Eliot
August 13th, 2003, 08:25 PM
Awesome work!!! Many thanks to you ;D ;)
vBulletin® Copyright ©2000-2012, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2012, Wilders Security Forums