[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-29-2006, 08:16 AM   #1
SnowSurfer
Rear Admiral Lower Half
 
SnowSurfer's Avatar
 
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?
SnowSurfer is offline   Reply With Quote
Old 05-29-2006, 08:26 AM   #2
SnowSurfer
Rear Admiral Lower Half
 
SnowSurfer's Avatar
 
Join Date: Jun 2002
Posts: 2,616
ok i got it using hotkey manager, ill post the commands i used in a sec...
SnowSurfer is offline   Reply With Quote
Old 05-29-2006, 08:41 AM   #3
SnowSurfer
Rear Admiral Lower Half
 
SnowSurfer's Avatar
 
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
SnowSurfer is offline   Reply With Quote
Old 05-29-2006, 09:40 AM   #4
SnowSurfer
Rear Admiral Lower Half
 
SnowSurfer's Avatar
 
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.
SnowSurfer is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 03:29 PM.