|
Answer» hallo everybody ! I have a project at ms-dos commands. :-? the project is to write a batch file that do the same thing as one of the dos commands for example - when you write DIR it show all the files in that directory - what i need to do is to write abatch file that shows all the files in that directory without USING the dir command- (i can't choose dir cause it was the example). so if you know how to write it or even just explain how to start doing it i'll thank you a lot. thanx and have AGREAT weekend. Seems to be mission impossible.
Commands like dir are the basics. They are used in Batchfiles. You can try to simulate more complex commands. The Unix command pwd is possible with a for loop.
uliHow about
Using REN to rename a file instead of RENAME...
I mean you WOULD be writing a batch file to do REN's WORK without using REN...not exactly understand what you really want, but when you use the copy/xcopy command to copy files to a directory, you can see the files being copied
so i guess
copy * destdir 2>&1 or simply copy * destdir or use xcopy
will let you see the files in the directory ...
or you could use
for %%a in (path) do ( echo %%~ftzaa )
|