Home > Software engineering >  How to determine whether the file is qbasic.the exist
How to determine whether the file is qbasic.the exist

Time:09-30

Thank you master, under the guidance, judge by QASIC DOS a file exists?

CodePudding user response:

DOS dongdong, old years don't have to

CodePudding user response:

If dir (" c: \ aa. The text ") & lt; & gt;" "Then
Msgbox "the file already exists!" , 48, "tip"
The exit sub
End the if

CodePudding user response:

Dir function can be used in qb, press the f1 help,

CodePudding user response:

See the letters is qbasic.the miss now,

CodePudding user response:

reference 4 floor JTHKL response:
now see the letters are missed, is qbasic.the

CodePudding user response:

With the Open statement On the Error, Error Open that file does not exist,

CodePudding user response:

Fifth floor can find software (pictures?) , 1987-1992.95 I how old, are carefully calculate just know, I remember there's a few demo of Microsoft, is a snake, played many times,

CodePudding user response:

Problem is a normal method, on the second floor of the building Lord count 5 floor "crooked ways" , but also calculate a different approach, is the one thousand program complex on the error in the set of another on the error? Didn't try,

CodePudding user response:

refer to the eighth floor JTHKL response:
problem is a normal method, on the second floor of the building Lord count 5 floor "crooked ways" , but also calculate a different approach, is the one thousand program complex on the error in the set of another on the error? Haven't tried,

The second floor is a method of "normal"??
Don't you know the second floor is a VB6 or VBA code, can't use in qbasic.the,

"Speculation", miss zhao method should be right,
With the Input mode to open the file, the file does not exist it will cause abnormal,

CodePudding user response:

refer to the eighth floor JTHKL response:
... Is the one thousand program complex on the error in the set of another on the error? Haven't tried,

I think this is the problem caused by wrong "programming design, planning,
I am so far, VB6, VBA code also wrote many,
If a particular function, the process need to exception handling, it will only appear at the entrance of the corresponding one On Error Goto...
A never appeared in the process of the second On the Error statements,

CodePudding user response:

references 9 f Chen8013 response:
Quote: refer to the eighth floor JTHKL response:

Problem is a normal method, on the second floor of the building Lord count 5 floor "crooked ways" , but also calculate a different approach, is the one thousand program complex on the error in the set of another on the error? Haven't tried,

The second floor is a method of "normal"??
Don't you know the second floor is a VB6 or VBA code, can't use in qbasic.the,

"Speculation", miss zhao method should be right,
With the Input mode to open the file, the file does not exist it will cause abnormal,

Are you, if I am wrong, I'm very sorry, because have is too long time have not used qbasic.the, the last time as if made a small program in 2003, because of a little special so remember the years, remember before in the apple II, basic and pure goto statements, anyhow is past, is the building Lord if it is not very necessary advice or give up, is qbasic.the like goto statement is very is not in conformity with the programming idea now,

CodePudding user response:

Obviously, zhao old wet it is standard practice,
  • Related