Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_how to know if an Exe was run from the CLI?
#1
i mean to know if an executable was activated by clicking from the Windows explorer or from an already dos session? (being Windows loaded, naturally)

i think this would be useful for including code in an executable to close the Dos window when was clicked from the explorer or to stay in the command line after finishing when was activated from the prompt (without parameters)

is there a way to know that?

also i tried SHELL"Set" but the line 'CmdLine=' it's not shown only it can be shown from Dos prompt, why only from the Dos prompt?
Reply
#2
Because SHELL Creates a new prompt, independent of the first one.

If you want the commandline of a QB prog, try: COMMAND$
Reply
#3
Nope, must be without parameters and from an Exe
Reply
#4
You can't.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
Isn't this possible through the properties of the EXE?
roeten van Frenkel
Visit us at The Official S&F PROD. Homepage
Reply
#6
Yeah. Edit whether the MSDOS link properties (Windows 9X/ME) or _DEFAULT.PIF properties (Windows 2K/XP).
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
__How can they be editted?
Reply
#8
right click - properties.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#9
well, wrongly i was thinking it was possible from QB code but could be some advanced
Thank you anyway
Reply
#10
If it's your code you can simply create a file when it's running.
oship me and i will give you lots of guurrls and beeea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)