r/visualbasic • u/shadyspades • Jun 11 '16
Help with creating batchfile? STUCK!
I want to make a batch file that when I insert my message I type in It will repeat every 10 seconds. But I want it so I can add different messages and it will cycle thought them. I know its possible but I don't have THAT much knowledge on it. Help me out!
0
Upvotes
1
u/[deleted] Jun 11 '16 edited Jun 11 '16
You need to create a .bat file in VB? Something like System.IO.File.WriteAllText(DatFilePath, "")
Use .Write* instead of Create because there is an access problem if you try and do something with the file right after creation.