hello i'm new to this but here is my problem:
i have a batch that copies files from a cd to a new directory but when i run my batch another step asks me if i would like to create a file or directory by hitting f or d .
i was wondering what i could add to the batch so it's automatic with d selected everytime.
@rem BATCH FILE
@echo off
if "%1" == "" goto error1
if "%2" == "" goto error2
xcopy "%1" "%2" /S /E /H
@rem * need d automatically entered
goto endofprogram
:error1
echo You must provide source
echo Syntax:
echo %0 source destination
goto endofprogram
:error2
echo You must provide destination
echo Syntax:
echo %0 source destination
goto endofprogram
:endofprogram
thank you in advance!
Create directory from batch automatically without typing d
Moderator: DosItHelp
-
- Posts: 2
- Joined: 15 Jul 2009 20:01
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa