Adblock breaks this site

VB question

Discussion in 'Programming General' started by user123, Nov 29, 2008.

  1. user123

    user123 Forum Addict

    Joined:
    Mar 12, 2007
    Posts:
    439
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    I created Form, Added a button, now how do i make the button1 execute a .exe ? and how do i pack the vb program and all exes i need to execute into 1 .exe
     
  2. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    Sounds to me like your making a virus, but eh what ever. Look into resource files for storing exes and to open an exe use shell.

    Code:
    Shell "calc.exe'
     
  3. dosanjh5

    dosanjh5 Member
    Banned

    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    go to file and click save as exe
     
  4. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    That isn't exactly what he was asking for Dosanjh...
    He was asking how does he compile other exe and his program under the one executable file...
     
  5. user123

    user123 Forum Addict

    Joined:
    Mar 12, 2007
    Posts:
    439
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    Thanks for helping jds, oh and im not making a virus, I am making an interface to open up programs in my cheat pack.
     
  6. Pwnography

    Pwnography Active Member
    Banned

    Joined:
    Dec 16, 2008
    Posts:
    204
    Referrals:
    0
    Sythe Gold:
    0
    VB question

    Well, For me to actually create a interface it looks a bit like this
    Dialog>dialog1
    Caption=Test Menu242
    Width=297
    Height=255
    Top=104
    Left=CENTER
    EndDialog>dialog1
    That basically creates a menu.. a blank menu just a box untill I add programs.
    a button added to it looks like this..
    Dialog>dialog1
    Caption=Test Menu242
    Width=297
    Height=255
    Top=104
    Left=CENTER
    Button=Run Task(s),130,174,98,20,1
    Button=Close Menu,130,200,98,20,2
    Button=DiskDefrag,130,146,98,20,3
    EndDialog>dialog1
    and then I have to write the subroutine.

    Label>Mainloop
    if>result=2,End
    if>result=3
    endif
    Goto>Mainloop

    SRT>Start Disk Defrag
    ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
    END>Start Disk Defrag


    So alltogether
    the script would look like this



    Dialog>dialog1
    Caption=Test Menu242
    Width=297
    Height=255
    Top=104
    Left=CENTER
    Button=Run Task(s),130,174,98,20,1
    Button=Close Menu,130,200,98,20,2
    Button=DiskDefrag,130,146,98,20,3
    EndDialog>dialog1
    Show>dialog1,result

    Label>Mainloop
    if>result=2,End
    if>result=3
    endif
    Goto>Mainloop

    SRT>Start Disk Defrag
    ExecuteFile>C:\WINDOWS\system32\dfrg.msc,
    END>Start Disk Defrag

    Yet again, it is its own language has its own protocol but its on a VB engine.
    That is what it would look like for me to create a small menu that launchs disk defragment at a click of a button.
     
  7. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    VB question

    I... uh... think you have the completely wrong language... This is the forum for Visual Basic 6.0, not some waked out kind-of-like-VB-Script language. :\
     
< [QUES]Sending multiple textbox lines | Introduction >


 
 
Adblock breaks this site