delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/20/05:19:39

From: Geoff Cox <geoff DOT cox AT cableinet DOT co DOT uk>
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
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 <stdio.h>

int main()
{

char *call = "c:\\program files\\javasoft\\jre\\1.1\\bin\\jre.exe";
system(call);

}


Cheers

Geoff

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019