Results 1 to 6 of 6

Thread: extern script

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2011
    Posts
    118

    extern script

    hi,

    I want to make a program what can execute an extern script/sub. So you don't need to change the .exe file to change anything, but just the script/sub (if possible just a .txt).
    e.g. in my program I have a button "run extern script" and then it will look for "C:/externscript.txt" and execute RunExternScript()
    Code:
    Public Sub RunExternScript()
    MsgBox("This is an extern script.")
    End Sub

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: extern script

    I want to make a program what can execute an extern script/sub.
    Right, well, jolly good. Off you go then!
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: extern script

    I would first question the motivation for this. There are certainly valid reasons for this sort of thing but just so that you don't have to recompile to change the app behaviour is not one of them. What is the actual aim here? The fact that you have no idea how to proceed suggests to me that you have clear aim.

    If what you're asking for really is appropriate then it might be as simple as calling Process.Start to execute a VBScript file or as complex as compiling VB code on the fly.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2011
    Posts
    118

    Re: extern script

    Quote Originally Posted by jmcilhinney View Post
    I would first question the motivation for this. There are certainly valid reasons for this sort of thing but just so that you don't have to recompile to change the app behaviour is not one of them. What is the actual aim here? The fact that you have no idea how to proceed suggests to me that you have clear aim.

    If what you're asking for really is appropriate then it might be as simple as calling Process.Start to execute a VBScript file or as complex as compiling VB code on the fly.
    So I can build in easier things in my game (on the server side). I don't need to recompile the server on this way everytime

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: extern script

    Well gee, thank you for that extremely comprehensive description. That clears up any possible confusion. Oh, hang on, no it doesn't.

  6. #6
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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