Code:
Updating registry
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
The operation completed successfully.
Creating C:\Users\aaaaaaaa\GenFileList1.bat
Creating C:\Users\aaaaaaaa\GenFileList2.bat
#############################################################################
# To use, Open File Explorer, navigate to the folder above the one you want #
# to get a directory list of. #
# Press the Shift key and Right click on the folder you want the directory #
# list for and select Create File List. Notepad will open with the contents #
# of the directory. #
# #
# The batch file used to gather the directory info is . You can #
# change that however you want to control the directory output you see. #
#############################################################################
Press any key to continue . . .
Code:
Removing entries from registry
The operation completed successfully.
The operation completed successfully.
Deleting Batch files.
######################################################
# Registry entries and batch files have been deleted #
######################################################
Press any key to continue . . .
See above highlighted areas.
Both scripts were run to change the registry.
How can the registry section(s) be viewed / checked to confirm the changes?
When are reboots before checking required?
Try it, does it work? If so the registry entries are correct.
Otherwise, look at the batch script to see the registry entries being added.
Code:
(REG Add "HKCR\AllFilesystemObjects\shell\printDir1" /D "Create File List" /T REG_SZ /F)
(REG Add "HKCR\AllFilesystemObjects\shell\printDir1\Command" /VE /D """"%batchfile1%""" """%%V"""" /F)
(REG Add "HKCR\AllFilesystemObjects\shell\printDir2" /D "Create File List wSubs" /T REG_SZ /F)
(REG Add "HKCR\AllFilesystemObjects\shell\printDir2\Command" /VE /D """"%batchfile2%""" """%%V"""" /F)
Run reg query "HKCR\AllFilesystemObjects\shell" from a Command Prompt and you'll see something like this:
Code:
reg query "HKCR\AllFilesystemObjects\shell\
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell
printDir REG_SZ Create FileList
command REG_SZ c:\users\ztruk\GenFileList.bat "%V"
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\LaunchWorkfoldersControl
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\OfflineFilesLaunchSyncCenter
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir1
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printDir2
You can then query the subkeys if you want to go further:
Code:
reg query "HKCR\AllFilesystemObjects\shell\printdir1"
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1
(Default) REG_SZ Create File List
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1\Command
Code:
reg query "HKCR\AllFilesystemObjects\shell\printdir1\command"
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir1\command
(Default) REG_SZ "C:\Users\ztruk\GenFileList1.bat" "%V"
Code:
reg query "HKCR\AllFilesystemObjects\shell\printdir2"
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2
(Default) REG_SZ Create File List wSubs
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2\Command
reg query "HKCR\AllFilesystemObjects\shell\printdir2\command"
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\printdir2\command
(Default) REG_SZ "C:\Users\ztruk\GenFileList2.bat" "%V"
No reboot is needed.