ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

seeking something to replace and rename files by drag 'n' drop

(1/2) > >>

nudone:
i'm forever replacing files that are referenced within other programs (eg. swf files referencing jpg's for a gallery slideshow).

for these kinds of things to work i have to maintain the filenames, i.e. the new file and the old file that is replaced have to share the same file name.

i find it an incredibly tedious process having to manually type each file name for each new file.

as the old file that is going to be thrown away has the correct name i'd like an 'automatic' way of taking the old file's name and giving it to the new file's name.

something like a drag and drop process would be great, something like this:

1. i drop the new file with 'randomname.jpg' onto the old file with 'specificname.jpg'

2. the old file is then automatically deleted.

3. the new file has it's name automatically changed to what the old file's name was (so randomname.jpg becomes specificname.jpg).

if there is something out there that does something similar to this then please speak up.

the main point is that i need it to be something simple - i need to pick single files out of a folder that may contain several so the drag 'n' drop process will be the quickest way of doing it. well, anything quicker than typing filenames out by hand would be good.

love you all, nudone.

jgpaiva:
I think it's not possible to do drag-drop on to the other file, because that is already a behaviour that is specified in windows: it starts that other file, with the dropped file as argument.
But it shouldn't be hard to make a gui, where you'd drop first one file, then the other one, and it'd do what you want.

nudone:
yes, i see what you mean, jgpaiva.

a gui would be just right though.

how about something like this...

a small window - two panels - left and right.

left panel - you drop the old file.

right panel - you drop the new file.

after the second drop (i.e. both files have been dropped) the auto process takes place - old file name copied to new file, then old file deleted and new copied to old files location.


extending it further perhaps several files could be dropped at a time on each panel - the files remain in the order they were dropped and when you have an equal number of files in each left and right panel then the auto process takes place - or better, you click a button to start the process. important - if only one file is dropped on each panel then the process happens automatically without having to press a button.

are you going to be my knight in shining armour again, jgpaiva?

ak_:
If by "new file" you mean "file with a more recent modification/creation date", i guess a AHK script could be easily done : you drag and drop the two files on the script GUI and the script takes the oldest file's name, erases it, rename the recent file, and that's it.

Of course if you can't rely on files' dates, it won't work.

nudone:
that's a clever idea - it would work most of the time.

Navigation

[0] Message Index

[#] Next page

Go to full version