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