Sunday 3 February 2013


Do more with files on DOS......

1> Output 
2> Error Handling
3> Commands

you can use like this :

C:\Users\Akhilesh\Desktop>java 1>output 2> error 3>Commands
Say hello !

More about FOR Loop in DOS:
(call more than one command simultaneously by using FOR Loop)

for %X in (file1 file2 file3) do command

Exp:-
FOR %X IN (ak.txt JavaFall.java) DO TYPE %X


A little Batch Programming:

:top
cd\
color fc
cls
mspaint
cls
goto top

save it with *.bat file.
note: it will open n times ms paint.

No comments:

Post a Comment