Originally posted by slore at 2008-2-6 12:54 PM:
I am using AllFileSystemObject above
What the 17th floor said is correct. If you use * to apply to files, to apply to folders you need to use or folder, but you cannot use directory and folder at the same time. Using AllFileSystemObject can apply to both files and folders.
The registry is really picky, it has to ensure both comprehensive functions and no redundancy and overlap in the key values!
What is the parameter format and function of "%%~dpnxi" in the line "call :sub1 "%%~dpnxi""?
