Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    7

    running batch file

    Hi,
    I am trying to run a batch file during my installation. the batch file should run silently (i don't care if the user sees the screen but shouldn't be able to do anything) recieve "Y", and redirect output to a log file.
    this is what i wrote in my code:

    File.Run("cmd","echo y | "..InstallPath.."Setup.bat > log.txt", "", SW_SHOWNORMAL, false);

    it is not working :(

    how should it be done???

    thanks,
    Dana

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    I normally create a .bat file and once I've got it working as I want, I put it in the docs folder and just run that. I've never quite managed to get my head around the syntax to include command line switches, parameters etc. and doing it all from inside a .bat has always got me around my problems.

Similar Threads

  1. How do you turn off error messages when running a batch file.
    By AmyGrrl in forum AutoPlay Media Studio 6.0
    Replies: 11
    Last Post: 01-29-2006, 07:41 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. Running a batch file
    By racedog in forum AutoPlay Menu Studio 3.0
    Replies: 2
    Last Post: 05-11-2001, 01:55 AM
  4. 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