From: Geoff Cox Newsgroups: comp.os.msdos.djgpp Subject: hwo to run prog using "program files" etc ?? Message-ID: <7se2ttccpk5u9g6223hmp6jvl9c17m15lo@4ax.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 Date: Sat, 20 Oct 2001 09:00:38 GMT NNTP-Posting-Host: 213.48.250.168 X-Complaints-To: http://www.blueyonder.co.uk/abuse X-Trace: news1.cableinet.net 1003568438 213.48.250.168 (Sat, 20 Oct 2001 10:00:38 BST) NNTP-Posting-Date: Sat, 20 Oct 2001 10:00:38 BST Organization: blueyonder (post doesn't reflect views of blueyonder) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I am trying to run jre.exe which is in c:\program files etc but following compiles OK but when runs comes up with "bad command or file name" under Windows 98(SE) - any suggestions please? #include int main() { char *call = "c:\\program files\\javasoft\\jre\\1.1\\bin\\jre.exe"; system(call); } Cheers Geoff