Welcome Guest.   Make a donation to an author on the site October 01, 2014, 03:17:36 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: How to duplicate a file in the same folder?  (Read 24497 times)
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #5 on: April 16, 2009, 09:40:51 PM »

Windows Explorer  smiley
Logged
Target
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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]
  1. ; Script to duplicate a file with current date
  2. dateString := A_YYYY . "-" . A_MM . "-" . A_DD
  3. Loop %0%  ; For each parameter (or file dropped onto a script):
  4. {
  5.    SourcePath := %A_Index%  ; Fetch the contents of the variable whose name is contained in A_Index.
  6.    SplitPath, SourcePath, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
  7.    DestinationPath := OutDir . "\" . OutNameNoExt . "_" . dateString . "." . OutExtension
  8.  
  9.    FileCopy, %SourcePath%, %DestinationPath%, 1
  10. }

I've also attached a compiled version that you can put into your "Send To" directory.

Does that do it?


* DuplicateFile.ahk (0.49 KB - downloaded 210 times.)
* DuplicateFile.exe (198.85 KB - downloaded 197 times.)
Logged

PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: April 17, 2009, 12:58:29 AM »

Quote
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
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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  smiley

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
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Friend of the Site
Supporting Member
**
Posts: 4,170



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: April 18, 2009, 09:35:21 AM »

If you shore a door shouldn't you prop a gate?  Wink
Logged

Chris
Target
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: April 18, 2009, 06:00:15 PM »

If you shore a door shouldn't you prop a gate?  Wink
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
Friend of the Site
Supporting Member
**
Posts: 4,170



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Friend of the Site
Supporting Member
**
Posts: 4,170



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #20 on: April 19, 2009, 03:06:52 AM »

The bunnies are perfect for the programme!  Grin
Logged

If you need help - JUST ASK!
Target
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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
Charter Member
***
Posts: 2,025

View Profile Give some DonationCredits to this forum member
« 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/cept

http://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.


* Screenshot - 4_20_2009 , 8_15_07 AM.png (120.21 KB, 606x483 - viewed 277 times.)
Logged
Target
Honorary Member
**
Posts: 1,407



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« 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!!)

* ThePropagator.exe (206.8 KB - downloaded 183 times.)
* ThePropergator.zip (2.66 KB - downloaded 182 times.)
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Pages: [1] 2 3 4 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.129s | Server load: 2.12 ]