English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

Hi can any one tell me a batch script to make a directory, move files from one directory to other directory. please. i tried to make a directory in d:\ using batch script like this

cd d:\
md hello
exit

but the hello directory came on to my desktop instead of d:\
anything wrong.

2006-11-10 23:21:41 · 3 answers · asked by Dvij 3 in Computers & Internet Programming & Design

3 answers

The following batch file should do what you want:

@echo off
md d:\hello
move d:\1stdir\*.* d:\hello
exit

2006-11-11 06:18:13 · answer #1 · answered by Farnsworth 3 · 0 0

Try putting this into your file

cd d:\
d:
md hello
exit

That'll do it for you. It will change dir to the d: drive, switch to the d: drive then make your directory.
Good Luck

2006-11-11 07:26:18 · answer #2 · answered by Puraz 3 · 0 0

And better to use "@echo off" on top.

2006-11-11 07:32:26 · answer #3 · answered by exodusfe 1 · 0 0

fedest.com, questions and answers