Batch Files and excel document

help_questions

Board Regular
Joined
Aug 22, 2005
Messages
215
Here is a rundown of what I want to do....
1) In excel files names Files.xls (stored in C:), I will have a list of mp3 format files going down column A. It could be one, two, ten however many files. I will input my mp3 file names manually in excel, close and save the xls document.

2)Then I need a batch file that will look into column A of the above excel document, find the mp3 files, copy them and paste them.
I will want to input the path(either in excel file before save and close, or (preferably, via input box) to be searched.
I want the files copied to C:\Files

I am stuck with this one.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Im not 100% on what your after...

i use excel to 'build' the batch file. which involves getting all your required input information in the right format, and things like where its going etc etc.

then, simply concatenate it all up into a huge line (eg copy "c:/mp3/prince.mp3" "c:/files/"), then copy and paste it out into notepad, and save as a batch file, and run...

I did a similar thing to rename 1400 megadrive roms that were stored in 8.3 format! I wrote a small prog to drop out the characters specifically within the file needed, dropped it into excel with the file names, and made a huge batch file to rename them all in one go...

Took a few hours, but worth it in the end :D
 
Upvote 0

Forum statistics

Threads
1,224,925
Messages
6,181,790
Members
453,066
Latest member
Firemonte

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top