Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Location
    Emigsville, PA
    Posts
    10

    Batch file modification

    Hello everyone,

    I need to find a way to create an action to edit some batch files... the batch files that are installed look something like this...

    c:
    cd c:\Vasont\dita
    ant -f C:\Vasont\dita\Vasont_pdf.xml -Dargs.input=%1 -Dexec.arg.1=%2

    What I need to do is replace the "c:' and "c:\vasont\dita" to the default install directory that the installer installed the package to. I didn't have any luck finding a good way to find/replace text or strings in a batch file... Any help would be appreciated... Thanks

    - DBA

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by vasontsystems View Post
    Hello everyone,

    I need to find a way to create an action to edit some batch files... the batch files that are installed look something like this...

    c:
    cd c:\Vasont\dita
    ant -f C:\Vasont\dita\Vasont_pdf.xml -Dargs.input=%1 -Dexec.arg.1=%2

    What I need to do is replace the "c:' and "c:\vasont\dita" to the default install directory that the installer installed the package to. I didn't have any luck finding a good way to find/replace text or strings in a batch file... Any help would be appreciated... Thanks

    - DBA
    use TextFile.ReadToString(); String.Replace(); TextFile.WriteFromString();

    that or just run the code in your batch file in your lua script.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. running batch file
    By dana in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 07-22-2006, 05:03 PM
  2. My batch file stays open in background ?
    By jimmy guilfoyle in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 05-08-2004, 06:28 PM
  3. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  4. Display output from batch file (txt)
    By weaze1 in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 03-06-2003, 11:01 AM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

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