1.

Solve : copying file?

Answer»

Code: [Select]@ECHO off
TITLE File Copying from one name to ANOTHER!
if NOT %1=="" goto do

echo Enter Source File Name!
SET /P src="Enter Source File Name: "
echo.
echo Enter Destination File Name!
set /P dest="Enter Source File Name: "
echo.
copy %src% %dest% /Y >NUL
echo.
echo Copy Done !!!


:do
cls
echo.
echo.
echo.
echo.
echo.
echo.
copy %1.? *.inc /Y >NUL

echo.
echo copy done
echo.
pause

the above cody works without if statement

I want it to copy the INPUTED file extension to .inc


any help will be highly appreciatedif NOT "%1"=="" goto dothanks a lot



Discussion

No Comment Found