DOS apps to use _G.shell.resolvePathInput for opening a file

This commit is contained in:
minjaesong
2022-09-24 01:51:57 +09:00
parent c598b6633d
commit f9eecab830
5 changed files with 6 additions and 12 deletions

View File

@@ -10,10 +10,8 @@ else {
println("File to print out?")
filename = read()
}
let driveLetter = _G.shell.getCurrentDrive()
let filePath = _G.shell.getPwdString() + filename
let file = files.open(`${driveLetter}:${filePath}`)
let file = files.open(`${_G.shell.resolvePathInput(filename).full}`)
if (!file.exists) {
printerrln("File not found")