|
|
function shell$(command$) open "msvcrt" for dll as #msvcrt command$ = command$ + " > %temp%\lbbcmd.out" calldll #msvcrt, "system", command$ as ptr, r as long close #msvcrt tmp$ = space$(260) calldll #kernel32, "GetTempPathA", 260 as long, tmp$ as ptr, r as long open left$(tmp$,r) + "lbbcmd.out" for input as #tmp shell$ = input$(#tmp, lof(#tmp)) close #tmp end function
|
|
|
|
run "dir > %temp%\stdout.txt", wait