Sure! Simply open a file for output and print whatever you want the batch file to include.Best regardsVB Code:
Dim hFile As Integer hFile = FreeFile Open "C:\MyBatch.bat" For Output As #hFile Print #hFile, "@Echo Off" Print #hFile, "Dir c:\ /s > c:\DirList.txt" Close #hFile




Reply With Quote