Welcome Guest.   Make a donation to an author on the site November 28, 2014, 11:06:46 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.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: Prev 1 [2] 3 4 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: How to duplicate a file in the same folder?  (Read 25315 times)
Grorgy
Supporting Member
**
Posts: 820

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #25 on: April 20, 2009, 05:39:19 PM »

I was just playing with lopesoft's file menu tools, and it has an option to duplicate files in same folder

Quote
Duplicate Files    files of any type and folders    Creates a new copy of the selected elements in the current folder.

http://www.lopesoft.com/en/index.html

It has a lot of other stuff you may not want to, but...
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #26 on: April 21, 2009, 09:30:32 PM »

Trying to run ThePropagator.exe results in an error message



The script doesn't do a thing either.

BTW, I was trying to run another script of yours, MaimThatFile.ahk, and got this error message:



I have installed the latest version of Autohotkey but that did not make any difference.
Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #27 on: April 21, 2009, 10:05:49 PM »

Quote
The script doesn't do a thing either.
BTW, I was trying to run another script of yours, MaimThatFile.ahk, and got this error message:
That Target guy sure has a weird sense of humour!
Logged

Chris
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #28 on: April 21, 2009, 11:16:59 PM »

dunno what's happening there, though I was on the bus when I compiled it - I've recompiled it, tested it, tested it again, and re-attached it fyi

my bad with maim that file - the icon was in the previous attachments (which I've removed - the last post wasn't an update, only a check to make sure chris was using the same version as me).  I've attached a zipped bundle and a compiled version, so have another go and let me know how you get on

* ThePropergator.zip (2.66 KB - downloaded 131 times.)
* ThePropagator.exe (206.82 KB - downloaded 141 times.)
« Last Edit: April 22, 2009, 01:33:27 AM 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,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #29 on: April 22, 2009, 06:30:58 AM »

@Target
Haven't looked at this one before.
When I run it, neither a tray icon nor a 'drop box' appears.
I don't have a Win key to try so I'll look in the script later to change that.
Also, I use DirOpus so I'll have to revert to hExplorer, in order to jinx my system sufficiently.
At the moment I'm having to work for a crust... that'll be the fifth day this month!
Since usually (when I do so) I do this from home, I don't have long leisurely bus rides during which to play with software.


@PhilB66
MaimThatFile works just fine for me.
I was unable to make one version work, until I deleted every single thing related to it and started from scratch with the latest variant.
Perhaps that will help in your case, also.
Logged

Chris
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #30 on: April 22, 2009, 11:52:46 AM »

@Target
(I did not change Win+V)
Relying only on Explorer.exe:
  • No drop target appears
  • F12 does nothing
  • Crlt-alt-x kills it propoly.
Logged

Chris
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #31 on: April 22, 2009, 12:58:42 PM »

@Target
(I did not change Win+V)
Relying only on Explorer.exe:
  • No drop target appears
  • F12 does nothing
  • Crlt-alt-x kills it propoly.

ditto
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #32 on: April 22, 2009, 01:00:20 PM »

@PhilB66
MaimThatFile works just fine for me.
I was unable to make one version work, until I deleted every single thing related to it and started from scratch with the latest variant.
Perhaps that will help in your case, also.


Thanks, will redownload the script.
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #33 on: April 22, 2009, 01:04:12 PM »

I was just playing with lopesoft's file menu tools, and it has an option to duplicate files in same folder
Thanks for the suggestion Grorgy, but the last thing I want is to clutter my right-click context menu.
Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #34 on: April 22, 2009, 01:08:34 PM »

Free to use for how long it does not say.
It claims to be shareware, but I don't see any limits.

Thanks for the link cmpm. It has a 45-day evaluation period.
Logged
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #35 on: April 22, 2009, 08:08:41 PM »

can you guys run the attached window spy for me and tell what the AHK class is for your versions of explorer please



at the moment it's set up to run with "ExploreWClass" and this works on all the PC's I've tried it on (all XP SP2 machines)

If your explorer window isn't active, or it doesn't match the above, then nothing will happen

* AU3_Spy.exe (14.03 KB - downloaded 144 times.)
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,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #36 on: April 22, 2009, 08:40:24 PM »

can you guys run the attached window spy for me and tell what the AHK class is for your versions of explorer please
 (see attachment in previous post)
at the moment it's set up to run with "ExploreWClass" and this works on all the PC's I've tried it on (all XP SP2 machines)

Ah!  Here's the thing. I dumped the Propagator into a temp folder and stuck a shortcut onto my desktop:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Program Manager
ahk_class Progman


So, having read this, I launched explorer and navigated with it to the temp folder and fired off the ahk script from there:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
F:\RAM\Props
ahk_class ExploreWClass


Et voila, procreating bunnies!

Apologies for the unwarrented failure but now I'm lapin it up.

So, make it work from a shortcut?


Logged

Chris
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #37 on: April 22, 2009, 09:15:16 PM »

well, that's rather bizarre - duplicated your methodology and it's working, but it's a bit spotty

it appears to intermittently fail to detect the explorer window, or it does (there is a momentary flash of the drop target) but loses it again almost immediately

I'll have a bit a game and see if I can work it out (thanks for the feedback!!)
 
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #38 on: April 22, 2009, 11:43:43 PM »

OK, I think I may have worked it out

it's a very minor change, but try it and let me know

* ThePropergator.zip (2.67 KB - downloaded 122 times.)
* ThePropagator.exe (206.83 KB - downloaded 131 times.)
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 #39 on: April 23, 2009, 03:06:41 AM »

OK, I think I may have worked it out

it's a very minor change, but try it and let me know


Nada.

Window Spy screenshot:

Logged
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #40 on: April 23, 2009, 03:15:36 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.



Also, could you add a "Duplicate to" feature (similar to "Copy to" and "Move to" functionality)?
Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #41 on: April 23, 2009, 07:37:11 AM »

OK, I think I may have worked it out
it's a very minor change, but try it and let me know

Nada.
Here's my experience:
  • Launch from desktop shortcut
  • Wait a bit (this is a technical term, don't worry if it's hard to grasp)
  • Nothing visible -- it's running
  • Open an explorer window -- drop target appears
  • F-12'd to set 15 copies
  • Dragged file from explorer window to drop target -- 15 copies created
  • Drop target invisible when explorer window loses focus or closed
  • Drop target visible when explorer window launched or gains focus
  • Can't move drop target around -- bounces back to start position (does anyone care about that?)
  • Drop target not 'on top' (does anyone care about that, either?)
  • Ctrl-Alt-x'd into oblivion
Do these bunnies have bugs?

Getting closer!

Anyone have a utility to expunge 15 unwanted copies?  Grin
Logged

Chris
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #42 on: April 23, 2009, 09:17:23 AM »

Whoa.

Thanks for this cranioscopical. I can now confirm that the bunnies been reproducing like crazies...



Win+V doesn't work though.
Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #43 on: April 23, 2009, 10:03:29 AM »

Quote
Win+V doesn't work though.

For testing I changed the key to alt-V:
line 82 of script from $#V:: to $!V::
(I have no Windows key on my Northgate keyboards.)
That works fine for my test.

Method was:
  • launch Popogator
  • F-12 to set the number of desired instances
  • In explorer, select a file and either Ctrl-C it or context-menu copy it
  • Hit alt-V (or Winkey+V if you don't need to change the script)
  • Instant replication of file to the value set by F-12.

I know it's a hare-brained scheme but...


Logged

Chris
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #44 on: April 23, 2009, 06:31:17 PM »

Window Spy screenshot:
 (see attachment in previous post)

What OS?  I assume it's Vista, and unfortunately I only have XP to work with so there could be other gotcha's like this.  I've updated the script to include the extra class, but you'll need to test it for me...

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...

  • Drop target invisible when explorer window loses focus or closed, and visible when explorer window launched or gains focus
  • Can't move drop target around -- bounces back to start position (does anyone care about that?)
  • Drop target not 'on top' (does anyone care about that, either?)

  • the drop target window is destroyed whenever explorer is inactive, and recreated each time it is (active, that is...).  I did it this way to avoid have stray windows floating around (seemed perfectly logical to me, but what do I know huh)
  • Is this something you would like to be able to do?  I wondered about moving the drop target - logically it didn't seem to matter where it was so long as it wasn't over anything critical (and it's translucent anyway), and given that it will self destruct as soon as you click on it, that doesn't seem like too big an issue either.  I just thought about this a bit more and wondered whether or not some sort of pause functionality might be useful (not sure why, but maybe you guys have an idea)
  • not sure what you mean by 'not on top' - it is set to be 'on top', just not active (remember, if the focus goes away from the explorer window the drop target self destructs)

keep the feedback coming and we'll get there

launch Popogator

don't know about hare brained, but I think I can see where some of your problems are coming from...

* ThePropagator.exe (206.86 KB - downloaded 121 times.)
* ThePropergator.zip (2.69 KB - downloaded 133 times.)
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,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #45 on: April 23, 2009, 06:53:40 PM »

  • Drop target invisible when explorer window loses focus or closed, and visible when explorer window launched or gains focus
  • Can't move drop target around -- bounces back to start position (does anyone care about that?)
  • Drop target not 'on top' (does anyone care about that, either?)

  • the drop target window is destroyed whenever explorer is inactive, and recreated each time it is (active, that is...)
  • I wondered about moving the drop target - logically it didn't seem to matter
  • not sure what you mean by 'not on top' - it is set to be 'on top', just not active
  • Makes perfect sense -- I didn't realize the subtlety of your design
  • Static suits me. Others might like it on the monitor screen from which it was initiated -- maybe not.
  • Didn't understand the destruction/recreation so thought it had been obscured by another window at that location

Quote from: Target
I think I can see where some of your problems are coming from...
You noticed!  Time to write the Poopograter

Quote from: Target
keep the feedback coming and we'll get there
It's been a long March here but it's all white to be late, Alice forgiven.

And no, I have no shame!

Logged

Chris
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #46 on: April 23, 2009, 07:24:04 PM »

or the defecator...

Quote
It's been a long March here but it's all white to be late, Alice forgiven
i realise it's been a long March, but don't worry April be all right

Quote
I have no shame!

just to prove you've mastered the understatement...
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,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #47 on: April 23, 2009, 07:56:54 PM »



Quote
It's been a long March here but it's all white to be late, Alice forgiven
i realise it's been a long March, but don't worry April be all right

Quote
I have no shame!

just to prove you've mastered the understatement...
Grin

Hot keys don't work for me in the latest offering.
A press on F12 does nothing, but if I hold it down the script reports an inordinate number of hotkeys received.
Have you done anything that would affect that, or is this purely random?

Logged

Chris
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,196



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #48 on: April 23, 2009, 08:22:13 PM »

Hot keys don't work for me in the latest offering.
A press on F12 does nothing, but if I hold it down the script reports an inordinate numbe
r of hotkeys received.

Went back one generation and then the hotkeys did work. Then I killed that and ran the newest version which took F12.
Bunnies were in their own window, no transparency. That window and the explorer window sat and refreshed over and over.
I could drag a file icon to the bunnies to get duplication but if I attempted to move the explorer window it jumped back to its original position,
so it looks as if you're locking in place the bunnies and the explorer window.

At one point I had open two explorer windows and the bunnies ran away.
Shy as they are, they re-emerged once one of the explorer windows was closed.

All this and I haven't even had a drink. This is the best game I've played all week  smiley

Logged

Chris
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #49 on: April 23, 2009, 08:59:13 PM »

Hot keys don't work for me in the latest offering.

the hand is quicker than the I...

I amended the top of the script to included the new window class, but forgot about the hotkeys - I guess that'll learn me to concentrate on one thing at a time...

Quote
All this and I haven't even had a drink. This is the best game I've played all week  smiley

I'm laughing and laughing and laughing (now if I could just stop gritting my teeth...)

* ThePropagator.exe (206.85 KB - downloaded 110 times.)
* ThePropergator.zip (2.69 KB - downloaded 125 times.)
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Pages: Prev 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.05s | Server load: 0.09 ]