QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Function

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
jejump
Newbie
Posts: 9
Joined: Wed Jun 25, 2014 7:54 am

QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Function

Post by jejump » Wed Jul 02, 2014 11:38 am

Hello All,

Well, the subject line pretty much says it all for me. I can't use the QBX command SHELL "dir/on c:>proglist.dir" running MS-DOS 7.10. Is there some resolve for this behavior or do I need to back up and install DOS 6.22?

Thanks for reading,

John

User avatar
burger2227
Veteran
Posts: 2257
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Funct

Post by burger2227 » Wed Jul 02, 2014 4:52 pm

QB64 worked using: SHELL _HIDE "dir/on c:>proglist.dir"

Even without proper spacing. Try spaces between dir /on C: > proglist.dir
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

jejump
Newbie
Posts: 9
Joined: Wed Jun 25, 2014 7:54 am

Re: QBASIC DOS Shell in MS-DOS 7.10 results in Illegal Funct

Post by jejump » Sat Jul 05, 2014 10:22 am

If this should help someone down the road...

I figured out the problem with DOS 7.10. I performed the installation with the drive volumes unlocked. If you are using QBX which knows nothing about long file names, you must install it with the volumes LOCKED if you want to perform commands like the prior example. It's working just fine now after that correction.

John

Post Reply