|
|
#1 |
|
Rear Admiral Lower Half
![]() ![]() Join Date: Jun 2002
Posts: 2,616
|
batch script to move files
I have two drives in my computer, one is the os drive the other is for music and movies and stuff. When I download things legally they all go in to one folder, we can call this folder d:holding area. I would like to highlight all of the music files and either hit a key combo (alt-m) or send to and have them move to d:my music.
I have tried to get it to work using a batch script with this as the code but it wont let me move more than one file at a time. any help would be greatly apprecatied... batch script I have now to move one file at a time... @echo off for %%n in (%*) do move %%n "D:\My Music"
__________________
I have an athlon xp 2500+ ... aren't you glad you know that? |
|
|
|
|
|
#2 |
|
Rear Admiral Lower Half
![]() ![]() Join Date: Jun 2002
Posts: 2,616
|
ok i got it using hotkey manager, ill post the commands i used in a sec...
|
|
|
|
|
|
#3 |
|
Rear Admiral Lower Half
![]() ![]() Join Date: Jun 2002
Posts: 2,616
|
ok heres what i used in hotkey master
basically heres what happens, I highlight the files I want to move to my music and also into my itunes library. I use this program called itunes library updater (read about it http://www.lifehacker.com/software/i...ers-175161.php) // = comment kill process itunes.exe //cant have itunes running when the script starts... pause 1 second //pause to allow itunes to close keyboard macro <ctrl-x> //cut the files pause .5 seconds //pause to space things out run "d:/my music" //this command opens the d:/my music folder pause 3 seconds //the folder is large (30 gigs) so I am giving it time to open keyboard macro <ctrl-v> //pastes the files pause 4 seconds //depending on how many files I am copying, wanted to give it time to act keyboard macro <alt-f> <pause 250ms> <C> <C> <enter> //this closes the folder pause 2 seconds //waits for the folder to close and then runs the batch script which starts the library updater. run itul.bat //runs the library updater batch script pretty easy and it makes my laziness come to a new level ![]() |
|
|
|
|
|
#4 |
|
Rear Admiral Lower Half
![]() ![]() Join Date: Jun 2002
Posts: 2,616
|
ok easier better way to do it without installing itunes library updater...
// = comment kill process itunes.exe //cant have itunes running when the script starts... pause 1 second //pause to allow itunes to close keyboard macro <ctrl+x> //cut the files pause .5 seconds //pause to space things out run "d:/my music" //this command opens the d:/my music folder pause 3 seconds //the folder is large (30 gigs) so I am giving it time to open keyboard macro <ctrl+v> //pastes the files pause 4 seconds //depending on how many files I am copying, wanted to give it time to act keyboard macro <alt+f> <pause 250ms> <C> <C> <enter> //this closes the folder pause 2 seconds //waits for the folder to close and then runs the batch script which starts the library updater. run itunes.exe pause 4 seconds //allow itunes to start up switch to iTunes //makes sure the itunes window is focused keyboard macro <alt+f> <pause 150 ms> <D> <pause 150 ms> <enter> //this basically adds a folder to itunes but you make sure the folder where your music is, is always selected so when you run this it just looks in that folder and adds the new files. |
|
|
|