I can make a batch file through vb...but i have no clue as to what i can do/put in it...can anyone who knows tell me what can be done with a batch file?
thanks.
Newbee vbeer6.0()
Vb6 Pro sp3&4
End Sub
Printable View
I can make a batch file through vb...but i have no clue as to what i can do/put in it...can anyone who knows tell me what can be done with a batch file?
thanks.
Newbee vbeer6.0()
Vb6 Pro sp3&4
End Sub
Make a batch file?
A batch file is just a text file with dos commands and a .bat extension! So Sure, just output text to a text file and name it .bat
I Appreciate it!!!!!
That should give you the idea of what you can put into a .bat file. Basically any DOS command can be run in it, including other .bat .exe .com etc etc etc
I was messing with the autoexec earlier today and i was trying to add something to it and i accedentally used
"for output as #1" instead of what i should of used "for append as #1" but i saved my self...hehehe.
Can anyone described what they have used a batch file for?
i would like to hear what anyone has used a batch file for?
Thanks
Newbee vbeer6.0()
' WhozitFaceWhatchamacallit
End Sub
throw this in your Autoexec.bat file
(and help keep you computer clean =)
Echo Y|If Exist C:\Windows\Tempor~1\*.* Del C:\Windows\Tempor~1\*.*
Echo Y|If Exist C:\Windows\Recent\*.* Del C:\Windows\Recent\*.*
Echo Y|If Exist C:\Windows\Temp\*.* Del C:\Windows\Temp\*.*
Echo Y|If Exist C:\Windows\Cookies\*.* Del C:\Windows\Cookies\*.*
TONS of batch files and how they work =)
http://www.cableyorkton.com/users/gbraun/batch/
Pre-Windows days used batch files to call a menu system at end of autoexec.bat. Build up a list of tasks to run at month end etc.
Now days, code it through vb etc, and hardly ever shell out to DOS.
What do you want the Batch file to do anyway, that you caren't Do Event in vb
Like i said am a newbee...in all my nonsense i still havent come across the need for "Do Events" ..Probably cause i dont know what it does.....
anyone can explain please?
Thanks
p.s. just my luck i learn how to make batch files and then i find out there's no need for them....haha oh well.
Newbee vbeer6.0()
Still learning with vb 6 por sp3&4
End Sub
pipe std output data from one app to another or to text files using >> etc :D
...Well, you asked!
If you are in a loop, but you still want to recieve events you just type doevents to the loop.
private Exitloop as boolean
Sub Main()
Do
Doevents
loop until Exitloop = true
End Sub
Private Sub form_click
Exitloop = True
End Sub
Like this. The Form click event would not be handled while you are in the loop if you don't use DoEvents.