Execute an exe file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Execute an exe file

  1. #1
    Join Date
    Dec 2006
    Posts
    16

    Execute an exe file

    Could anyone please help me to execute an exe file "fi2t1" and store its output files into the destination "C:\\Temp\\sample".

    Currently, my following code is not outputting any files.

    private static void compilingFiles() throws IOException
    {
    String SecondParam = "C:\\Temp\\sample";
    Process procforopenreport2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 "+new File(SecondParam));
    }

  2. #2
    Join Date
    Dec 2006
    Posts
    16
    Could anyone please help me to execute an exe file "fi2t1". It needs to pick up necessary files from source and place the output files to the desination
    source =>String FirstParam1 = "C:/Temp/sample";
    destination=>String SecondParam = "C:/Temp/sample";

    My code is:
    private static void compilingFiles() throws IOException
    {
    String FirstParam1 = "C:/Temp/sample";
    String SecondParam = "C:/Temp/sample";
    Process procforopenreport2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 "+ FirstParam1, (String[])null, new File(SecondParam));
    }

Similar Threads

  1. ASP execute win32 exe file on server
    By eugene2005 in forum VB Classic
    Replies: 2
    Last Post: 04-01-2006, 10:48 PM
  2. sending email from exe file through ASP
    By priya in forum ASP.NET
    Replies: 1
    Last Post: 01-17-2002, 10:12 PM
  3. Execute the EXE file from Start-Run
    By Sinni in forum VB Classic
    Replies: 7
    Last Post: 07-25-2001, 03:07 PM
  4. Replies: 0
    Last Post: 06-27-2001, 05:11 PM
  5. Replies: 0
    Last Post: 08-22-2000, 11:54 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center