Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

changing variable in VBS externally

  • 22-09-2005 09:49AM
    #1
    Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭


    I have a contsant in a .vbs file, im trying to change it externally [from an asp page?]
    anyway ive tried using POST/GET methods in an asp forum and passing it on to the VBS file,
    problem is = i think this way il have to change it everytime, i just want it to change and get left there so when i go into the file the string inputed can be seen.
    POST/GET didnt work anyway, also they load the vbs file after changing it, which i dont want.

    thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Is the .vbs file on the same server as the asp page? If so you could use the FileSystemObject to edit the file.

    But why are you changing a constant? If the constant value depends on an external factor then maybe you should use a variable instead and include the neccessary logic in the .vbs file.


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    save the "constant" from your asp page to a text file. make your VB program read the constant from the text file.

    Dont bother trying to change the "constant" permanently inside the VB program once the program is compiled. Thats impossible without a recompile.


Advertisement