WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Win7

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

AskDirectory in Windows 7 Ignores New Folder

 Keywords:  AskDirectory in Windows 7 Ignores New Folder

Question:

I have a script which works fine in all versions of Windows except Windows 7. When the user clicks 'make new folder' from the AskDirectory dialogue then renames the new folder and selects the newly named folder, the dialogue returns 'New Folder' to the script rather than returning the name of the selected folder.

Answer:

Interesting. We were was able to reproduce this on Windows 7.

This problems is more or less a Windows 7 bug, because it is caused by an undocumented change to the behavior of the Shell COM API in Windows 7. At this time we do not have a workaround for this change in behavior short of completely rewriting the WinBatch folder browser function.

In the meanwhile here is some workaround code, that seems to work on Windows 7: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Files~and~Directories+udfAskDirectory.txt

Note: Select the folder you want to create the subfolder then right click and select 'new'.


Article ID:   W18435
Filename:   AskDirectory in Windows 7 Ignores New Folder.txt
File Created: 2014:07:18:09:51:40
Last Updated: 2014:07:18:09:51:40