02-27-2003, 08:01 AM
Hi all, this should be so simple, but I can't seem to find a command that will do it.
In QB4.5, I want to make a decision based on whether or not a file exists or something IN the file exists. Basically, (no pun intended), I want to test to see if a certain line exists in the autoexec.bat file, then branch based on whether its there or not. I can do everything except actually test the file.
Thanks all, Dex
EDIT: And to be even more specific, I'ld like to check to see whether or not DOSKEY.COM is running before taking an action.
I did find one real convoluted way to test for the existance of the autoexec.bat file:
CLS
FILES "C:\AUTOEXEC.BAT"
Insert a for/next loop here that uses the
POINT(x,y) command to test for the existence
of the letters a u t o e x c on the screen.
Told you it was convoluted! :???:
Thanks again.
In QB4.5, I want to make a decision based on whether or not a file exists or something IN the file exists. Basically, (no pun intended), I want to test to see if a certain line exists in the autoexec.bat file, then branch based on whether its there or not. I can do everything except actually test the file.
Thanks all, Dex
EDIT: And to be even more specific, I'ld like to check to see whether or not DOSKEY.COM is running before taking an action.
I did find one real convoluted way to test for the existance of the autoexec.bat file:
CLS
FILES "C:\AUTOEXEC.BAT"
Insert a for/next loop here that uses the
POINT(x,y) command to test for the existence
of the letters a u t o e x c on the screen.
Told you it was convoluted! :???:
Thanks again.