Qbasicnews.com
I am going to... - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Projects (http://qbasicnews.com/newforum/forum-12.html)
+--- Thread: I am going to... (/thread-8452.html)

Pages: 1 2 3 4 5


I am going to... - tannervp - 11-27-2005

test anyone's programs who wants me to! I have QBasic 4.5, and my comp will NOT run all. if it doesn't run, sorry

~~-:bounce: Charlie :bounce:-~~


I am going to... - whitetiger0990 - 11-27-2005

er. okay. thats nice to know. I guess... >_> Don't know what else to say.


I am going to... - Anonymous - 11-27-2005

go test lynns legacy, its in fb projects


I am going to... - axipher - 12-05-2005

if u wanna test a QB program so bad, make ur own, its fun too, and u dont have to worry about not liking it


Re: I am going to... - Moneo - 12-08-2005

Quote:test anyone's programs who wants me to! I have QBasic 4.5, and my comp will NOT run all. if it doesn't run, sorry.
Ok, here's a little program that I normally compile with QuickBasic 4.5 before running. You can test it any way you wish. I'm also running Windows XP, but use what you have.

The program receives a path name of a directory which it wants to know if it exists. For this is does a SHELL which should send the words YES IT EXISTS to the screen if it exists. Well, on my PC and others, it doesn't recognize existing directories. I think it's the \NUL which is not working on Windows 2000 and XP.

So, test it, and see what conclusions you have, and if you can get it to work.
Code:
print "Enter path of directory to test ";
input dirtest$
s$="if exist "+dirtest$+"\nul echo YES IT EXISTS"
shell s$
SYSTEM
Thank you very much.
*****


I am going to... - axipher - 12-08-2005

well i tired it for fun, and i just tried typing c:\, then c:\program files, and neither of them worked properly, plus you should add a CLS at beginning of file in case its run more then once


I am going to... - Moneo - 12-09-2005

Quote:well i tired it for fun, and i just tried typing c:\, then c:\program files, and neither of them worked properly, plus you should add a CLS at beginning of file in case its run more then once
Thanks for your help.

Regarding "c:\", that's my mistake. The command will read:
IF EXIST C:\\NUL where the \\ is an error. I should have tested for this.

Regarding "c:\program files", this won't work because long filenames and directory names are not supported in MSDOS.

Please try some other directory names.
*****


I am going to... - axipher - 12-09-2005

ill try c:\windows, it doesnt work, i tried caps and all, but all it does is end program


I am going to... - Moneo - 12-09-2005

Quote:ill try c:\windows, it doesnt work, i tried caps and all, but all it does is end program
So, it doesn't work with the SHELL from the program.
The same IF EXIST from the MSDOS command-line will work.
That's the point to this test.
What version of Windows are you running?
*****


I am going to... - axipher - 12-09-2005

XP Home, wat i think the problem is is that \nul, ill try without that

...

nope, nadam zilch, i wonder why it isnt working