Re: internet game

new topic     » topic index » view thread      » older message » newer message

From:    isaac
>when I simply enter http://members.aol.com/FilesEu/
>into the windows run window, it loads up my default browser to that page,
>and the same goes with mailto:whomever at wherever.com for email.  but when I
>tried this with system(address,0), i got "bad command or file name".

     Well, that's because system( ) uses COMMAND.COM, the DOS command
interpreter.  In Win95 Explorer.exe is the command interpreter you want.  So
have system( ) run Explorer and pass the address as a parameter like this:

system( "explorer http://members.aol.com/FilesEu/", 0)

or

system( "explorer mailto:whomever at wherever.com", 0)

     That works.  At least on my system (Win95 OSR2 with IE 4.0 extensions.)
I have no idea how to do it in Win3.x, though...  And I have a sneaky
suspicion that you *might* have to pass the address to the browser's EXE
instead of Explorer.exe on some computers depending upon their
configuration.  Probably not, but maybe....

Falkon

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu