log file for batch script

September 29, 2010 at 21:51:59
Specs: Windows 7
I need help in writing a log file for the batch script
The batch script is abt copying files from sorce to destination.So the log file should contain this information
Tis s the batch script
@echo off
set inp=
set /p inp=Type source:%=%
echo source: %inp%
@echo off
set out=
set /p out=Type destination:%=%
echo destination: %out%
@echo off
if "%inp%" == "" goto error1
if "%out%" == "" goto error2
@rem * Copy from source to destination including subdirs and hidden
@rem BATCH FILE
@rem * File
xcopy "%inp%" "%out%" /S /E /H /V /Y /W /P /R
goto endofprogram
:error1
echo You must provide source
echo Syntax:
echo Provide source
goto endofprogram
:error2
echo You must provide destination
echo Syntax:
echo Provide destination
goto endofprogram

See More: log file for batch script

Report •

#1
September 30, 2010 at 08:47:03
This is DOS stuff and you're posting in a UNIX forum. You might want to try your post over in the "Disk Op. System" forum (menu to the right).

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •
Related Solutions


Ask Question