|
PhilB66
|
 |
« on: April 16, 2009, 08:44:12 PM » |
|
Does anyone know a command (or a workaround) to duplicate a file in the same folder?
|
|
|
|
|
Logged
|
|
|
|
|
Target
|
 |
« Reply #1 on: April 16, 2009, 08:49:29 PM » |
|
if your working in explorer copy and paste (CTRL+C - CTRL+V) will generate 'copy of <insert your file here>'
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
PhilB66
|
 |
« Reply #2 on: April 16, 2009, 09:24:56 PM » |
|
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:  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:
|
|
|
|
|
Logged
|
|
|
|
|
|
Target
|
 |
« Reply #3 on: April 16, 2009, 09:32:22 PM » |
|
Ok, you got me on that one
sadly I've got nothing that might help here...
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
Target
|
 |
« Reply #4 on: April 16, 2009, 09:38:56 PM » |
|
actually, what file manager do you use?
i've just been looking at this and it looks like it could be do-able
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
PhilB66
|
 |
« Reply #5 on: April 16, 2009, 09:40:51 PM » |
|
Windows Explorer 
|
|
|
|
|
Logged
|
|
|
|
|
Target
|
 |
« Reply #6 on: April 16, 2009, 09:59:07 PM » |
|
thanks, I'll have a game..
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
Perry Mowbray
|
 |
« Reply #7 on: April 16, 2009, 10:35:28 PM » |
|
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) Hope I'm not butting in, but this can be sort of done with any script, here's an AHK: Formatted for AutoIt with the GeSHI Syntax Highlighter [ copy or print] ; 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 }
I've also attached a compiled version that you can put into your "Send To" directory. Does that do it?
|
|
|
|
Logged
|
|
|
|
|
PhilB66
|
 |
« Reply #8 on: April 17, 2009, 12:26:50 AM » |
|
Hope I'm not butting in
Not at all. Appreciate your help, but still waiting to see what Target has in store (no pun intended). 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. Thanks again for your help.
|
|
|
|
|
Logged
|
|
|
|
|
Target
|
 |
« Reply #9 on: April 17, 2009, 12:58:29 AM » |
|
still waiting to see what Target has in store me too...
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
Perry Mowbray
|
 |
« Reply #10 on: April 17, 2009, 01:54:49 AM » |
|
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. Well it can do anything you want it to  I only added date as that was what you had in your screenshot. You can drag multiple files onto the compiled version (or a shortcut to the exe). If you put it into your Send To directory you can multi-select too. I'm happy to make a change to the script: just tell me what you want tagged on the end
|
|
|
|
|
Logged
|
|
|
|
|
Perry Mowbray
|
 |
« Reply #11 on: April 17, 2009, 01:55:56 AM » |
|
Yes, it does, but what if I want several duplicates? Is it possible to both stamp and number the files?
Date - Time??
|
|
|
|
|
Logged
|
|
|
|
|
PhilB66
|
 |
« Reply #12 on: April 17, 2009, 03:57:57 AM » |
|
Yes, it does, but what if I want several duplicates? Is it possible to both stamp and number the files?
Date - Time?? Yes, that would be great. Also, could you add a path to icon in the script so I could add an icon and compile it.
|
|
|
|
|
Logged
|
|
|
|
|
Target
|
 |
« Reply #13 on: April 18, 2009, 06:43:34 AM » |
|
try this - The Propogator
creates copies of copied files within the same folder - files can be copied using the keyboard (CTRL+C) or drag and drop (onto the drop target). User can select the number of iterations (F12 to bring up the dialog)
File name format is FILENAME_YYYY-MM-DD_ITERATION (ie file test.txt would become TEST_2009-04-18_1.txt. The iteration increases for each successive copy)
to use the keyboard I went with WIN+V instead of CTRL+V - this is close enough to be usable, but avoids any potential issues with other copy/paste operations
and it ONLY works with windows explorer at the moment
I've also written it so there's no icons so it shouldn't get in the way (it's effectively invisible so if you put in your startup directory it'll run in the background)
let me know how it goes
EDIT: removed old attachments
|
|
|
|
« Last Edit: April 19, 2009, 08:46:19 PM by Target »
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
cranioscopical
|
 |
« Reply #14 on: April 18, 2009, 09:35:21 AM » |
|
If you shore a door shouldn't you prop a gate? 
|
|
|
|
|
Logged
|
Chris
|
|
|
|
Target
|
 |
« Reply #15 on: April 18, 2009, 06:00:15 PM » |
|
If you shore a door shouldn't you prop a gate?  I think you've become unhinged, but point taken an update, as I realised I had omitted a necessary ICO file (and because the icon I did for the compiled version looked like carp...) EDIT: removed old attachments
|
|
|
|
« Last Edit: April 19, 2009, 08:45:32 PM by Target »
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
cranioscopical
|
 |
« Reply #16 on: April 18, 2009, 06:42:27 PM » |
|
the icon I did for the compiled version looked like carp...
Don't be koi.
|
|
|
|
|
Logged
|
Chris
|
|
|
|
Target
|
 |
« Reply #17 on: April 18, 2009, 07:13:12 PM » |
|
you're fishing...
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
cranioscopical
|
 |
« Reply #18 on: April 18, 2009, 07:47:46 PM » |
|
you're fishing...
...and you took the bait; hook, line, and stinker!
|
|
|
|
|
Logged
|
Chris
|
|
|
|
PhilB66
|
 |
« Reply #19 on: April 18, 2009, 09:54:16 PM » |
|
let me know how it goes
It doesn't. 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. I have a dualscreen setup, if that's of any help. Here's a fun image for The Propogator: 
|
|
|
|
|
Logged
|
|
|
|
|
CleverCat
|
 |
« Reply #20 on: April 19, 2009, 03:06:52 AM » |
|
The bunnies are perfect for the programme! 
|
|
|
|
|
Logged
|
If you need help - JUST ASK!
|
|
|
|
Target
|
 |
« Reply #21 on: April 19, 2009, 07:35:02 PM » |
|
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.
that's interesting - works fine on my (work) laptop, though the drop zone image wouldn't render on my desktop at home (both are XP SP2). Sadly i don't have access to a dual screen setup for testing (just in case this has any relevance) I'll go through it again though, and incorporate your graphic for the drop zone (graphics is not one of my strong points...)
|
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
Target
|
 |
« Reply #22 on: April 19, 2009, 08:44:58 PM » |
|
updated - I'd made some (STUPID!!) spelling mistakes
At this stage I think it will only work on your primary monitor - I need to do some more study if it's going to work across multiple monitors
EDIT: redundant attachments deleted
|
|
|
|
« Last Edit: April 20, 2009, 05:30:45 PM by Target »
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|
cmpm
|
 |
« Reply #23 on: April 20, 2009, 07:22:27 AM » |
|
This can do what you want possibly. It worked for me anyway. Free to use for how long it does not say. It claims to be shareware, but I don't see any limits. The other one I found was FileMaker Pro-not free. http://www.annoyances.org/exec/software/cepthttp://www.creativelement.com/powertools/Adds commands for right clicking a file. There's more then 1 command to choose from after this installs. 'Power Rename' is the one I used to duplicate a file in the same folder with a time stamp.
|
|
|
|
Logged
|
|
|
|
|
Target
|
 |
« Reply #24 on: April 20, 2009, 05:30:15 PM » |
|
another update as I was playing with it this morning and noticed the compiled version wasn't playing to the rules
took me a while to realise that the window titles were changing when I compiled the script (DOH!!)
|
|
|
|
Logged
|
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
|
|
|
|