Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another email...
#1
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?
Reply
#2
Attrib does not work in Windows NT Wink NTFS and stuff, y'know.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
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.
onathan Simpson
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)