1.

Solve : Batch File Need Help?

Answer»

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?homework?
a QUIZ from my FRIEND to beat me. Well i new here
But im still keep to find solution here
Anyone can help me?type DIR /? to find out all you need to know.

type DIR /? to find out all you need to know.

command dir/? is to list all files and subdirectories icluding hidden files?? Is it?he means find out yourself, no homeworking helping...

DIR /?
lists all the switches and parameters for DIR.
this is forum ... so i'm please to get the INFO or clue from all of you here. Dont get me wrong. But im still hope to find the solution from the expert outhere. Can expert help me?Quote from: myusri on March 12, 2009, 06:28:29 AM

this is forum ... so i'm please to get the info or clue from all of you here. Dont get me wrong. But im still hope to find the solution from the expert outhere. Can expert help me?

Expert already did. Read the posts.Have you gone to Command PROMPT and typed 'dir /?' yet?yup i already done dir /?

Quote from: myusri on March 12, 2009, 10:02:56 PM
yup i already done dir /?



And what did you LEARN?


Discussion

No Comment Found