DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: How to duplicate a file in the same folder?  (Read 91,216 times)

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #50 on: April 24, 2009, 04:13 AM »
the hand is quicker than the I...
...but only sleightly.

Quote from: Target
I amended the top of the script to included the new window class, but forgot about the hotkeys
Seems to be going nicely now.

I wonder if this one will work for PhilB66.

@PhilB66
For what are you going to use these duplicated files, if you don't mind me asking? Just being nosey.

Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #51 on: April 24, 2009, 05:44 AM »
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

CleverCat

  • Cat's Are Fun!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
Re: How to duplicate a file in the same folder?
« Reply #52 on: April 24, 2009, 06:58 AM »
Was wondering same thing cranio.... ;)
If you need help - JUST ASK!

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #53 on: April 24, 2009, 07:00 AM »
I'm guessing testing porpoises (like, for a file renamer or something...)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

CleverCat

  • Cat's Are Fun!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
Re: How to duplicate a file in the same folder?
« Reply #54 on: April 24, 2009, 10:02 AM »
Porpoises? Sounds fishy.....

;D ;D ;D
If you need help - JUST ASK!

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #55 on: April 24, 2009, 02:26 PM »
I'm guessing testing porpoises (like, for a file renamer or something...)
Whale I never, I see you haven't lost your bottle and are still maiming to please!

Chris

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: How to duplicate a file in the same folder?
« Reply #56 on: April 25, 2009, 03:02 AM »
What OS?  I assume it's Vista

XP Pro SP2


Also, could you add a "Duplicate to" feature (similar to "Copy to" and "Move to" functionality)?
I knew someone was going to ask for this...

I suppose I could, but how would you access this functionality? maybe different hotkeys, eg WIN+SHIFT+V to copy, WIN+CTRL+V to move...

No luck sofar with the Win+V combination... so maybe a different hotkey combination for this functionality (Alt + V works just fine to paste a duplicated file in the source folder).

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: How to duplicate a file in the same folder?
« Reply #57 on: April 25, 2009, 03:09 AM »
Quote from: Target
I amended the top of the script to included the new window class, but forgot about the hotkeys
Seems to be going nicely now.

I wonder if this one will work for PhilB66.

Yep, it does (except for the Win + V hotkey)

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: How to duplicate a file in the same folder?
« Reply #58 on: April 25, 2009, 03:34 AM »
I'm guessing testing porpoises (like, for a file renamer or something...)

Do you see two porpoises?

[attach]

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #59 on: April 25, 2009, 03:51 AM »
Do you see two porpoises?

Looks like trailer for a beef feature to me!
You could probably write a dis-cetatean on that.
Chris

CleverCat

  • Cat's Are Fun!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
Re: How to duplicate a file in the same folder?
« Reply #60 on: April 25, 2009, 08:01 AM »
Related to the Sea Cow?  :D

Dugong to a lot of trouble to create that pic!
If you need help - JUST ASK!
« Last Edit: April 25, 2009, 08:04 AM by CleverCat »

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #61 on: April 25, 2009, 09:37 AM »
you guys started without me...
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #62 on: April 25, 2009, 11:55 AM »
you guys started without me...
If only we could finish in the same manner... that would be best for huge manatee!
Chris

CleverCat

  • Cat's Are Fun!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
Re: How to duplicate a file in the same folder?
« Reply #63 on: April 25, 2009, 12:16 PM »
;D ;D
If you need help - JUST ASK!

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: How to duplicate a file in the same folder?
« Reply #64 on: April 25, 2009, 04:28 PM »
exe corrupted, my Vista Explorer said!

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #65 on: April 25, 2009, 04:37 PM »
exe corrupted, my Vista Explorer said!

I just downloaded the exe when I saw your post, Curt.
Works fine here.
Might your first try have been corrupted in transit, somehow?
Perhaps you'll be luckier if you delete the one that doesn't work and then try again.
Chris

MerleOne

  • 4D thinking
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 957
Re: How to duplicate a file in the same folder?
« Reply #66 on: April 26, 2009, 10:35 AM »
XYplorer does that : select a file, press Ctrl-S, give a new name to the file, et voilĂ  !  XYplorer needed though.
.merle1.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #67 on: April 26, 2009, 11:04 PM »
Yep, it does (except for the Win + V hotkey)

well now, this is just getting silly so I'll ask a silly question - are we correct in assuming you've copied a file (or files) first (CTRL+C)?

feed for the output comes from the clipboard so if you haven't copied anything then you won't get anything

If you are then we'll try another hotkey - open the AHK script in an editor and amend the line (should be around line 83) that reads

  • $#V::

to something like

  • $^!V:: ;(CTRL+ALT+V)

if that doesn't work, let me know
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #68 on: April 26, 2009, 11:06 PM »
If only we could finish in the same manner...

if only I had a dollar for every time someones said that to me
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #69 on: April 26, 2009, 11:32 PM »
feed for the output comes from the clipboard

if only I had a dollar for every time someones said that to me
Ah!  Taken together those explain the mysterious appearance of
If only we could finish in the same manner_2009-04-26_1.txt
through
If only we could finish in the same manner_2009-04-26_999.txt

I wondered what the buck was happening.
Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #70 on: April 26, 2009, 11:47 PM »
even though it makes perfect cents to me I note that as usual you've been free with your poetic license
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #71 on: April 27, 2009, 01:28 AM »
even though it makes perfect cents to me I note that as usual you've been free with your poetic license
If anyone could get a charge from my nobility it'd be you.
No one cents that where you are?
Chris

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: How to duplicate a file in the same folder?
« Reply #72 on: April 27, 2009, 02:24 AM »
more than enough cents than to try and up the ante with you on this one (I'll only end up short changed)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: How to duplicate a file in the same folder?
« Reply #73 on: April 27, 2009, 03:19 AM »
[attach]
« Last Edit: April 27, 2009, 03:21 AM by PhilB66 »

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: How to duplicate a file in the same folder?
« Reply #74 on: April 27, 2009, 03:47 AM »
@PhilB66:
Nice job with the news splash, PhilB66!  :Thmbsup: :Thmbsup:

As you know, I looked at the Winkey code and didn't notice the '+'  :-[

more than enough cents than to try and up the ante with you on this one (I'll only end up short changed)

If you're not whale heeled we can play for lower steaks, those for tuna lately won't cost as much.
Chris

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