Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Help, How to make a new folder with batch file  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

justintime

  • Guest
Help, How to make a new folder with batch file
« on: October 22, 2004, 07:08:08 PM »
Well im new to dos, and im trying to make an bach file for a auto start cd, that im working on.  when the auto cd opens up it first opens the bach file.  

I cant seem to figure out how to make a new folder (called ranger) appear on the C:/ drive.  

Then i need to transfer a folder and all of its contents to c:/.(called ranger1)  from the CD.

I was able to get all the files to transfer from the CD to the C:/ but not in the folder(ranger1)

Can anyone help



Doomsday_J

  • Guest
Re: Help, How to make a new folder with batch file
« Reply #1 on: October 23, 2004, 03:41:49 PM »
While editing your batch file:

MD Ranger (makes a directory called ranger)

Copy D:\Directory\filename C:\ (Where D:\ is your Disk Drive and C:\ is the root of your HD)

Hope that helped.

J

franksimari

  • Guest
Re: Help, How to make a new folder with batch file
« Reply #2 on: November 19, 2004, 01:36:05 PM »
if you are operating from a CD in drive D and you want to copy files from it  use this as an example

say the folder you want to copy is called copythis

and the folder you want to copy it to on the c drive is called. tohere

you cannot just put the command  MD, but rather

md  c:\tohere

you do not see anything at that point

then it would be visually logical to you, although not necessary to change the directory on your D drive by

cd \copythis

then issue the command  copy  *.* c:\tohere

if there are subdirectories in copythis
use the command  xcopy *.*/s   c:\tohere and all the subdirectories will be copied with all their contents

8)