Example: when creating a folder using a context menu item like:
@nofilenamequoting
@runonce:@set dirname={dlgstringS|Enter name of folder to move selection into|{file$|noext}}
Copy MOVE HERE FILE="{file$}" CREATEFOLDER="{$dirname}"
As a 2nd step I would select the folder and click on a toolbar button that does the following:
I already tried that, but the problem is that the newly created folder, after the copy move... is not selected.
Normally that would not be necessary, of course.
However, in this case the .exe then runs on 'nothing', whereas it should run on a selected folder.
Do not know whether it is possible to select the newly created folder. Probably not.
Tried by adding Select "{$dirname}" but that did not work.
Removed the parameters after the exe - did not work
As said, this tool changes the folder date using the newest or oldest file in date.
Actually it can do this recursively on a folder with many subfolders.
Being just a wild guess on my part, I added "{$dirname}" as an additional argument to the .exe and that seems to work
@nofilenamequoting
@runonce:@set dirname={dlgstringS|Enter name of folder to move selection into|{file$|noext}}
Copy MOVE HERE FILE="{file$}" CREATEFOLDER="{$dirname}"
"D:\Directory Opus\SetFolDate\SetFolDateFM.exe" "{$dirname}" {ss} {Os}
[Off-topic]
I am sure it must be happening to others as well: for whatever vague reason one may occasionally end up with many folders having the same date stamp. Setting the folderdates to newest file in folder is handy then. That is the way I see it.
You are right, Leo, I know. Indeed, usually the folders I am talking about are often somewhat older and usually not subject anymore to changes. Then again, it could be that a later file is added (still old), in which case the folder date is updated with this setfoldate thing.
FWIW: a portable tool (that can be added to the context menu) that does a similar thing is "FolderTimeUpdate" (NirSoft)