Does anyone know a command (or a workaround) to duplicate a file in the same folder?
Thanks Target, but that will will rename the duplicate file to "Copy of ..." the source file. I guess I was not very clear about what I am looking for... Anyway, here's a screenshot:
(see attachment in previous post)
What I want is to drop a file in a folder and get an option to duplicate the file, so I get something like this:
(see attachment in previous post)
; Script to duplicate a file with current date
dateString := A_YYYY . "-" . A_MM . "-" . A_DD
Loop %0% ; For each parameter (or file dropped onto a script):
{
SourcePath := %A_Index% ; Fetch the contents of the variable whose name is contained in A_Index.
SplitPath, SourcePath, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
DestinationPath := OutDir . "\" . OutNameNoExt . "_" . dateString . "." . OutExtension
FileCopy, %SourcePath%, %DestinationPath%, 1
}Hope I'm not butting in
I've also attached a compiled version that you can put into your "Send To" directory.
Does that do it?
I've also attached a compiled version that you can put into your "Send To" directory.
Does that do it?
Yes, it does, but what if I want several duplicates? Is it possible to both stamp and number the files?
Also, I much prefer a drag and drop method where I could process multiple files at once, if possible.

Yes, it does, but what if I want several duplicates? Is it possible to both stamp and number the files?
Yes, it does, but what if I want several duplicates? Is it possible to both stamp and number the files?
Date - Time??
If you shore a door shouldn't you prop a gate?I think you've become unhinged, but point taken
let me know how it goes
I did see the "dropzone" area the first time I ran The Propogator, but it was flickering like hell. Dropping a file on the "Target" did the job, but Winkey + V and F12 did not do a thing. Also, when The Propogator is running, I cannot move windows around. Alt+Ctrl+X works fine.
Now, nothing is happenig. I mean, the script is running, but that's about it.



Original address: https://www.donationcoder.com/forum/index.php?topic=17933.0