Using older version of dbpro atm been away from it for about 2-3years or more and having trouble with a little project im working on
if your using xp not vista might have to change cmd to command
`opens a dos window `gets list of services
execute file "D:\windows\system32 cmd.exe","/c net start
`outputs to txt file
>> d:\d.txt","",1
`opens file
open to read 1,"D:\d.txt"
`storing variable to check string against
store$="windows firewall"
do
Read string 1,data$
`and heres the problem dont know how to fix
if data$="windows firewall"
end
endif
`just prints to screen so u can see whats going on and wait 80 is `to make it slow enough to read
print data$
wait 80
loop
Basically it opens a dos prompt, sends some commands to it to get the current running services on the pc. then outputs them to the d drive in a text file called d.txt
all i want to do is read the text file and see if a word matches a preset variable and or word
example:
read string "hello world"
check to see if "hello world" is what im looking for if it is then do something.
ty for any assistance. respons time might be aroung 12 hour
A child's dream never dies.