Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the DOS Find command in Qbasic

Status
Not open for further replies.

jnasse

MIS
May 30, 2002
2
0
0
US
I am having a problem using the find command in qbasic. The find command requires that the string be surrounded by "". Is there a way in qbasic to mark the extra "" I would need to use in the shell command as a regular character instead of a special character? For example SHELL "find /c "Lname Fname" Text_file
 
Use:

SHELL "find /c " + CHR$(34) + "Lname Fname" + CHR$(34) + " Text_file
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top