codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Close EXE & die command  pbhandari at 09:41 on Tuesday, January 05, 2010
 

Hi,

I have following line in my Perl code-->

system("start my.exe myfile.ext") == 0 or die "error ($?) : $!";

Q1: How do I close my.exe?
Q2: If I give myfile.ex1 instead of myfile.ext, myfile fails to open.
However, the error code returned by Perl is still 0.
Normally (when I specify myfile.ext), if I check what is stored in $!, its always "No such file or directory".
I want to report the error while opening 'myfile'. How can it be
done?

Thanks.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: FREE TV on your PC!
•  C/C++ Source Codes
•  ASP.net Source Codes
•  ASP Source Codes
•  Close EXE & die command
•  view image based on their profile (in php)
•  view image based on their profile (in php)
•  view image based on their profile (in php)
•  view image based on their profile (in php)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010