Script to search file and retrieve it's size
Hi All,
I have difficulty in VBScript.
I tried to make a script to search .dbx file under C:\Documents and Settings\...
And retrieve it's size.
It's good if that script can write that information into registry.
Thanks
I have difficulty in VBScript.
I tried to make a script to search .dbx file under C:\Documents and Settings\...
And retrieve it's size.
It's good if that script can write that information into registry.
Thanks
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
anonymous_9363
11 years ago
There are many, many examples of file-searching scripts around. You'll also find plenty which write data to the registry. Start at http://www.computerperformance.co.uk
BTW, I would avoid hard-coding the path to the profile folder (C:\Documents and Settings), as that ties your script to one OS i.e. XP - Vista uses 'C:\Users'. The safest option is to retrieve the relevant environment variable and set a variable with its content. Again, there are innumerable examples around.
BTW, I would avoid hard-coding the path to the profile folder (C:\Documents and Settings), as that ties your script to one OS i.e. XP - Vista uses 'C:\Users'. The safest option is to retrieve the relevant environment variable and set a variable with its content. Again, there are innumerable examples around.

so that the conversation will remain readable.