• Son of a Batch(file)

    From Mindless Automaton@VERT/ELDRITCH to DOVE-Net.Programming_(Jav on Fri Mar 9 11:42:00 2007
    I scripted up my maintenance batch file into a js file. :o

    I use this line:

    system.exec(bredir + "BRE PLANETARY");

    However, I think a lot of these doors need to be executed
    in their installed directory. So I guess I'd need to do
    something like:

    system.exec("cd " + bredir; "BRE PLANETARY");

    so it changes to the game directory and then executes?

    Anyhow, what, if there is any, is the correct way to stack
    commands in system.exec?

    Ie. system.exec(command1;command2;etc.); ?
    or: system.exec("cd " + bredir + "\nBRE PLANETARY");
    Or am I dreaming and should stick with a regular batch file?

    I'll have to try \n and see..

    Thanks,

    Mindless Automaton
    ---
    þ Synchronet þ Eldritch Clockwork BBS
  • From Digital Man@VERT to Mindless Automaton on Fri Mar 9 13:38:40 2007
    Re: Son of a Batch(file)
    By: Mindless Automaton to DOVE-Net.Programming_(Jav on Fri Mar 09 2007 11:42 am

    I scripted up my maintenance batch file into a js file. :o

    I use this line:

    system.exec(bredir + "BRE PLANETARY");

    However, I think a lot of these doors need to be executed
    in their installed directory. So I guess I'd need to do
    something like:

    system.exec("cd " + bredir; "BRE PLANETARY");

    so it changes to the game directory and then executes?

    Anyhow, what, if there is any, is the correct way to stack
    commands in system.exec?

    Ie. system.exec(command1;command2;etc.); ?
    or: system.exec("cd " + bredir + "\nBRE PLANETARY");
    Or am I dreaming and should stick with a regular batch file?

    I'll have to try \n and see..

    Windows uses && to "stack" command in a single command-line. You'd probably be better off using a timed event and specifying the correct Startup Directory in the configuration of that event in SCFG.

    digital man (xbox-live: digitlman)

    Snapple "Real Fact" #150:
    The first sport to be filmed was boxing in 1894.
    Norco, CA WX: 93.0øF, 25% humidity, 0 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net