creat file using batchfile
hey guys.
i am sorry if i am posting on the wrong place but i want to make it clear to me that is it possible to creat a file through batch file?
what i mean is, for example if i want to create a file named file.txt and write "hi how r u ..." in it, and save it to specified location.
so what we shold write in the batch file to perform this operation.
what should we use to write string?
what should we write for "F6" key to save the file??
and yes, when we use del *.* in batch file, it prompts " are you sure you want to del the file? Y/ N "
so what should be there to send Y or N and Enter to the system?
i am sure it [B]should not[/B] be like this:
--------------------------
cd %systemroot%
del *.*
y
----------------------------
how ever the other way is to use /q, but i guess there must be other ways to do this.
I lack knowledge, so sorry for any mistakes.