Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: output file

  1. #1
    Join Date
    Jul 2006
    Posts
    3

    Huh? output file

    Hi all !
    i'm trying to execute a .exe file with argument.

    the argument is "> out.txt" to redirect output to a simple textfile

    i've tried both .exe and .bat file (executed manually works fine !)

    my code is

    Code:
    result = File.Run("AutoPlay\\pci32\\PCI32.bat", "",_DesktopFolder, SW_SHOWNORMAL, true);
    
    result = File.Run("AutoPlay\\pci32\\PCI32.exe", "-s > out.txt",_DesktopFolder, SW_SHOWNORMAL, true);
    it always return an empty out.txt file !

    also tried with Shell.Execute function with same problem...

    thx anyway !

    bye

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Bat files should be .Open, not .Run!
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Jul 2006
    Posts
    3
    Quote Originally Posted by bule
    Bat files should be .Open, not .Run!
    Thaks, but i've changed in

    Code:
    result = File.Open("AutoPlay\\pci32\\PCI32.bat", _DesktopFolder,SW_SHOWNORMAL);
    with the same results, an empty out.txt


  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Try changing > out.txt into >> out.txt in your bat file.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  5. #5
    Join Date
    Jul 2006
    Posts
    3
    Quote Originally Posted by bule
    Try changing > out.txt into >> out.txt in your bat file.
    great man !
    now work fine !
    thx twice !

  6. #6
    Join Date
    May 2005
    Posts
    1,115
    Great!
    Now try this:

    Code:
    File.Run("AutoPlay\\pci32\\PCI32.exe", "-s >> out.txt",_DesktopFolder, SW_SHOWNORMAL, true);
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  2. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  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