Move/Create a text file into a folder
Posted: 11 Sep 2011 19:59
Hey. Can someone please help me with this.
I need to edit this code so directory of help files is created and all help files generated should be stores in the directory.
I can create the text file and the folder, but i cannot get the text file into the folder. lol
I need to get the text file to be created into the folder "Directory".
I also need to modify the program to check if a help file is already exists before creating one. If it exists display details
Thanks
Kami
I need to edit this code so directory of help files is created and all help files generated should be stores in the directory.
I can create the text file and the folder, but i cannot get the text file into the folder. lol
I need to get the text file to be created into the folder "Directory".
I also need to modify the program to check if a help file is already exists before creating one. If it exists display details
Code: Select all
@echo off
:start
echo. ____________
echo.
echo WELCOME
echo. ____________
echo.
set /p input=Please type your command:
%input% /? >%input%.txt
%input%.txt
md Directory
start Directory
pause
Thanks
Kami