Results 1 to 18 of 18

Thread: Exe runing multi times.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29

    Exe runing multi times.

    I have a question:

    I want to be able to run the same .exe multiple times. How would I go about doing this?

    Like, Load blah.exe yada yada yada.

    Also: It has a limit to the number of times it's opened. How would I bypass this?
    Look through your dreams through a mirror,

  2. #2
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    by default, the applications can be started in multiple instances on the same machine. if you cant do that with an application, that means the application protects itself from running in multiple instances. and that the guy who wrote it had something in mind when he or she added that code in there. there may be a trick that could fool some second instance of an app to think that there is no first instance of it, but i dont think that would apply to any app, and on top of that, most probably that app wouldnt run safely in multiple instances.
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    I know this, but all I ask is for a certain code or somethign to try, I'm just learning VB and trying to do somethings. I got most of the basics down, but I still need help.
    Look through your dreams through a mirror,

  4. #4
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    i wouldnt do that in vb anyways. c++ would be more appropriate for such an attempt.
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    (I don't know C++)

    So how are those Cubs!?
    Look through your dreams through a mirror,

  6. #6
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    LOL WOW...now i've seen everything. Someone asks the simplest vb question, another person tells him to learn C++ instead. IF HE WANTS TO LEARN VB, LET HIM LEARN IT!

    I'm sorry about some of the useless people on this forum *I WONT NAME NAMES BECAUSE I COULD BE ONE OF THEM*. ANYWAYS!


    NOTE: There's one thing though. This code won't work in run-time. It'll only work if the program is compiled. I'll have to figure out how to create another instance without compiling the program, but i'm kinda tired (SORRY).

    VB Code:
    1. 'To run your exe over and over, use the following
    2.  
    3. Shell app.path & "\" & App.EXEName & ".exe", vbNormalFocus

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    I think you might ahve mis understood.

    I want to run it multiple times, not over and over.

    I just want it to run about 1-2 more times. IE: 3 copys of the same program open at once.
    Look through your dreams through a mirror,

  8. #8
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    OHHHHHH...my bad. I misunderstood your post! Most apps' dont allow you to run multiple instances of a program. The main command to do that is to use the App.Previousinstance, and this just checks the EXE name and sees if its already loaded. To bypass this, reCopy and rename the exe you want to run! Others check the window title and close the app if it's another window with the same title was found. This requires hex editing to change the title of the window!

  9. #9
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    Originally posted by INF3RN0666
    LOL WOW...now i've seen everything. Someone asks the simplest vb question, another person tells him to learn C++ instead. IF HE WANTS TO LEARN VB, LET HIM LEARN IT!

    I'm sorry about some of the useless people on this forum *I WONT NAME NAMES BECAUSE I COULD BE ONE OF THEM*. ANYWAYS!
    shelling a few times your own app is quite trivial, i dont think most of the people on this board would need an advice for that. shelling a few times another app which is not designed to is quite different.

    you dont have to name names, it is quite obvious who you were considering useless, thanks. im not opposed to anybody learning vb, and i would recommend the appropriate tool for the appropriate task. since you consider you have seen everything, you know what you have to do now.
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  10. #10
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    Sorry but he didn't ask if he should use C++. So don't tell him to learn C++ when he asked how to do something in VB. If it's not doable, then tell him that it can't be done and then he'll ask "WHAT MUST I DO" and u tell him "C++, J, SOMETHING OTHER THAN VB"!

    Just put it this way, if you ask how to get the cursor position in VB and I tell you that VB is too slow to control the cursor, so go learn C++. Wouldn't that be annoying.

  11. #11
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    Originally posted by INF3RN0666
    Sorry but he didn't ask if he should use C++. So don't tell him to learn C++ when he asked how to do something in VB. If it's not doable, then tell him that it can't be done and then he'll ask "WHAT MUST I DO" and u tell him "C++, J, SOMETHING OTHER THAN VB"!

    Just put it this way, if you ask how to get the cursor position in VB and I tell you that VB is too slow to control the cursor, so go learn C++. Wouldn't that be annoying.
    you have misread that post too. i said *I* wouldnt do that in VB, and i said c++ would be more appropriate. i made no assumptions about his c++ knowledge, no assumption about whether what he asks can be done in vb or not, and havent sent anybody to the c++ manuals.

    cursor position is retrieved with the same system function in both c and vb. no difference.
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  12. #12
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    its a little unclear what exactly you want. Do you want to run multiple copies of a program you are writing? Or load a DIFFERENT program, such as aol, many times?

    If its your own program, i believe there is a setting that allows you to do that in the compile menu.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  13. #13

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    Different program.
    Look through your dreams through a mirror,

  14. #14
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    if you can't load it several times manually you won't be able to do it several times programmably (or whatever the word is)
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  15. #15
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    I don't want to question your knowledge BuggyProgrammer but you can run several instances of a program programatically even if you can't do it manually. It's been done, and an example of it would be dual MSN windows open. :S Right...or wrong?

    Like I said...Some programs use the simple VB method to detect previous instances which can be bypasses by changing the executable's filename and running it. Other programs may check to see the window's title and shut down if another one is found. Obviously there are many more ways, but some of them can be easily bypassed, others require Hex Editing knowledge, and some require ASM knowledge.

    Maerd --> Which program do you want to run multiple isntances of? Maybe I can see if I can find a way around the programming.

  16. #16

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    A VB game.. it's quite ellaberate.
    Look through your dreams through a mirror,

  17. #17
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    I meant as in I need to know its name and where to get it from. Maybe I can crack it for you. If I can't, then you'll need someone who can hex edit like a pro, or knows asm like a pro!

  18. #18

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    29
    Xiaspora - http://nigh.no-ip.com:100/

    All you need is the main download, the other ones are unnessecary, unless you plan on playin it.
    Look through your dreams through a mirror,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width