!!!!HELP!!!! Auto exec and cmd commands HELP PLEASE!!!

snowman15

Solid State Member
Messages
16
Hey
I need to know how to write an autoexec and how to write a code that will move a file of my choice to another folder on the computer from a cd to a different folder.


Say I put a file onto a cd. I want it, without me clicking anything, to automatically move a file of my choice from the cd onto the desktop (or any other folder) on the computer.

I know theres something about making a notepad doc and typing in some code but could someone help me out with the code?
Thanks!!!
 
you have to write a batch file, and this may not work on all cd's, just so you know.
@echo off
copy %1 %2
:end
enter that into a text document. Save the file as copyCD.bat
to run the program, place it wherever you like, then open up the command prompt.
start->run-> type cmd and press enter
from here, you need to locate your batch file
for starters it's better to put the batch file in the root of c:
so, with your command prompt open, type cd \
this will put you in c:, where your batch file is
now type this command
copyCD.bat d:\mycd\myfile.txt c:\
this will copy a file named myfile.txt from a folder named mycd to the root of c:.
Hope that helps, although it would be just as easy to just type copy in dos.
 
Back
Top Bottom