23 lines
462 B
Plaintext
23 lines
462 B
Plaintext
//NOTEST // It is very frustrating if this one is auto-tested
|
|
//
|
|
// DosShell
|
|
//
|
|
// This program shell to DOS
|
|
//
|
|
// Warning : DOS only
|
|
//
|
|
|
|
function Main()
|
|
|
|
local cOs := Upper( OS() )
|
|
local cShell := GetEnv("COMSPEC")
|
|
|
|
if (at( "WINDOWS", cOs ) != 0) .or. at( "DOS", cOs ) != 0
|
|
? "About to shell to DOS.."
|
|
! (cShell)
|
|
? "Hey, I am back !"
|
|
else
|
|
? "Sorry this program is for Windows and DOS only"
|
|
endif
|
|
return nil
|