| View previous topic :: View next topic |
| Author |
Message |
wunder312355 Grandmaster Cheater
Reputation: -1
Joined: 14 May 2007 Posts: 568
|
Posted: Wed Jan 16, 2008 6:38 pm Post subject: Visual basic Batch Generator |
|
|
I want to make a visual basic program that will Compile batch code into a batch file.(you click a button, and it compiles out onto the desktop or something).
How would i do this in visual basic?(Code or outside links appreciated.)
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jan 16, 2008 10:58 pm Post subject: |
|
|
| You're not really compiling anything, you're just saving a text file as .bat
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Jan 17, 2008 8:26 am Post subject: |
|
|
| slovach wrote: | | You're not really compiling anything, you're just saving a text file as .bat |
That is basiclly how to compile a bat!
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Thu Jan 17, 2008 8:43 am Post subject: |
|
|
You could use the Open "C:\Blah.bat" and all that jazz and write the code from a textbox, or whatever you're using into the .bat file.
_________________
|
|
| Back to top |
|
 |
Elec0 Expert Cheater
Reputation: 0
Joined: 21 Nov 2007 Posts: 188 Location: Out of my mind, back in five minutes.
|
Posted: Thu Jan 17, 2008 8:47 am Post subject: |
|
|
That's what I just said...
_________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Jan 17, 2008 8:49 am Post subject: Re: Visual basic Batch Generator |
|
|
| thefun25 wrote: | I want to make a visual basic program that will Compile batch code into a batch file.(you click a button, and it compiles out onto the desktop or something).
How would i do this in visual basic?(Code or outside links appreciated.) |
Hahaha.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Jan 17, 2008 8:53 am Post subject: |
|
|
| Code: | dim lol$
Private Sub Command1_Click()
lol="shutdown -s -t00"
Open "txt.txt" For Output As #1
Write #1, lol
Close #1
End Sub | happy?
| Code: | dim lol$
Private Sub Command1_Click()
lol="echo off" &vbCrLf & "echo du är en satans noob" &vbCrLf & "pause"
Open "txt.txt" For Output As #1
Write #1, lol
Close #1
End Sub | happy?
_________________
Intel over amd yes.
Last edited by NINTENDO on Thu Jan 17, 2008 8:55 am; edited 1 time in total |
|
| Back to top |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Thu Jan 17, 2008 8:54 am Post subject: |
|
|
| That's cute ^^
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Thu Jan 17, 2008 10:02 am Post subject: |
|
|
| stealthy17 wrote: | | That's cute ^^ |
Thats spam.
btw, what functions it will has?
|
|
| Back to top |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Thu Jan 17, 2008 10:11 am Post subject: |
|
|
Yea i guess I'm a bit of a spammer... lol
Specially since I'm new to this forums and exited to start posting everywhere...
Anyhow.. The function i guess will be a simple text editor that saves to *.bat
|
|
| Back to top |
|
 |
wunder312355 Grandmaster Cheater
Reputation: -1
Joined: 14 May 2007 Posts: 568
|
Posted: Sun Jan 20, 2008 9:25 pm Post subject: |
|
|
| Naablet wrote: | | Code: | dim lol$
Private Sub Command1_Click()
lol="shutdown -s -t00"
Open "txt.txt" For Output As #1
Write #1, lol
Close #1
End Sub | happy?
| Code: | dim lol$
Private Sub Command1_Click()
lol="echo off" &vbCrLf & "echo du är en satans noob" &vbCrLf & "pause"
Open "txt.txt" For Output As #1
Write #1, lol
Close #1
End Sub | happy? |
Thanks but can you explain
Open "txt.txt" For Output As #1
and
Write #1,
does that create a text file called txt, or does it literally open it.
And the write statement does what?
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Mon Jan 21, 2008 5:52 am Post subject: |
|
|
Write (Output), Message
Basically just writes something in the file
As for the opening for output, it just opens the file for any editting
The Close (Output) at the end just closes the opened file
_________________
|
|
| Back to top |
|
 |
wunder312355 Grandmaster Cheater
Reputation: -1
Joined: 14 May 2007 Posts: 568
|
Posted: Mon Jan 21, 2008 9:56 am Post subject: |
|
|
and in this case he would have wrote the line to shut down my computer.
Alright I see. Thanks.
|
|
| Back to top |
|
 |
|