Qbasicnews.com

Full Version: Another email...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:> I have been using the Qbasic Shell command in conjunction with the DOS
> Attrib command- I want to change a files attributes from read only to
> non read only and vice versa. When I use the command Qbasic crashes.
> This only occurs on my Windows XP machine and I have had a similar
> problem on a NT machines. The same coding works fine on DOS/Windows 3
> and Windows 95/98/Me computers.

Anyone?
Attrib does not work in Windows NT Wink NTFS and stuff, y'know.
Attrib works fine in NT... from the command line anyway. Make sure you load CMD.EXE under NT to use attrib, instead of command....
SHELL "cmd.exe /c attrib * -r"
for example.
You can use
ENVIRON("COMSPEC") to get the full path to CMD.EXE under NT (also a decent way to detect an NT based OS.