Ive been seeking the answer to the same question and I think I have found it! in a batch file (possibly only 2000/xp not 98/95) the variable %0 is the full path of the script file aka E:\autorun.bat where E:\ is the cd rom drive use the modifier ~d to give you the drive letter so %~d0 would be simply E: you can easily build from there xcopy %~d0\files C:\files http://www.acmesoffware.com/acme/default.asp Good luck!