mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 06:54:04 +09:00
app run integrated to command.js
This commit is contained in:
@@ -733,10 +733,7 @@ shell.execute = function(line) {
|
||||
}
|
||||
else {
|
||||
let programCode = searchFile.sread()
|
||||
let extension = undefined
|
||||
// get proper extension
|
||||
let dotSepTokens = cmd.split('.')
|
||||
if (dotSepTokens.length > 1) extension = dotSepTokens[dotSepTokens.length - 1].toUpperCase()
|
||||
let extension = searchFile.extension.toUpperCase()
|
||||
|
||||
if ("BAT" == extension) {
|
||||
// parse and run as batch file
|
||||
@@ -745,6 +742,13 @@ shell.execute = function(line) {
|
||||
shell.execute(line)
|
||||
})
|
||||
}
|
||||
else if ("APP" == extension) {
|
||||
let appexec = `A:${_TVDOS.variables.DOSDIR}\\sbin\\appexec.js`
|
||||
let foundFile = searchFile.fullPath
|
||||
|
||||
// println(`${appexec} ${foundFile} ${parsedTokens.tail().join(' ')}`)
|
||||
shell.execute(`${appexec} ${foundFile} ${parsedTokens.tail().join(' ')}`)
|
||||
}
|
||||
else {
|
||||
let gotError = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user