(03-17-2024, 07:16 PM)SMcNeill Wrote: SHELL is broken.Run into this a lot.
Try these three examples:
Code: (Select All)$Console:Only
Shell _Hide "reg query " + Chr$(34) + "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" + Chr$(34) + " /s > temp.txt"
Code: (Select All)$Console:Only
Shell "reg query " + Chr$(34) + "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" + Chr$(34) + " /s > temp.txt"
Code: (Select All)Shell "reg query " + Chr$(34) + "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" + Chr$(34) + " /s > temp.txt"
$CONSOLE:ONLY and SHELL works.
$CONSOLE:ONLY and SHELL HIDE doesn't work.
SHELL withotu $CONSOLE:ONLY doesn't work.
/SIGH
If it does not work, try adding "cmd /c " in front of your command
That fixes is 99% of the time
Code: (Select All)
$Console:Only
Shell _Hide "cmd /c reg query " + Chr$(34) + "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" + Chr$(34) + " /s > temp.txt"
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience