You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New features and bugfixes!
Rename MiniOSNetInstall.lua to miniOSclassic_download.lua
Update the downloader and change capitalisation.
Add miniOS NT repo as a submodule which contains the future miniOS code.
localfunctionintro() print(_OSVERSION.." ["..math.floor(computer.totalMemory()/1024).."k RAM, around "..math.floor(miniOS.freeMem/1024).."k Free]" .."\nCommand Interpreter By Skye M.\n") end
12
13
ifnotcontinuethenintro() end
@@ -29,7 +30,23 @@ local function runprog(file, parts)
29
30
end
30
31
31
32
localfunctionrunbat(file, parts)
32
-
error("Not yet Implemented!")
33
+
ifnotminiOS.cmdBatthenminiOS.cmdBat= {} end
34
+
locallines= {}
35
+
localline=""
36
+
localhandle=fs.open(file)
37
+
repeat
38
+
localchar=fs.read(handle, 1)
39
+
if (char=="\n" orchar==nil) then
40
+
lines[#lines+1] =line
41
+
ifchar==nilthenline=nilend
42
+
ifchar=="\n" thenline="" end
43
+
elseline=line..charend
44
+
untilline==nil
45
+
fs.close(handle)
46
+
47
+
--for _,l in ipairs(lines) do print(l) end
48
+
miniOS.cmdBat[#miniOS.cmdBat+1] =lines
49
+
os.exit(0)
33
50
end
34
51
35
52
localfunctionlistdrives()
@@ -145,6 +162,9 @@ local function twoFileCommandHelper(run, parts)
0 commit comments