I have create this batch file:
@echo off
REM Print the welcome message
echo Hello, Welcome to MS-DOS batch file For question 2aii
REM pause the screen
pause
REM clear the screen
cls
REM notify to list the current folder list
echo Listing all text files in current directory...
REM Listing the content of the current directory
dir *.txt/a/ogn
REM Delete all the text file
del *.txt
REM To check if txt file exit or not
if exist patuh.txt del patuh.txt
pause
Actually I want this progam to:
-Display all file and subdirectories including hidden files in the floopy disk
-Then the program will delete all text files in floppy disk before clear the screen
-After that prog will check whether the any text files exist or not in current directory, if exist all the text files copy to floopy disk, else change the colour of the screen background and foreground to red or yellow
Quit tricky but i m still no idea to continue the prog. Anyone can help plz?