Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: DOS environment variables
RunWait("cmd.exe","/c ping -n 1 Eueud034226 >c:\pt.txt") handle = FileOpen("c:\pt.txt","READ") while @TRUE x = FileRead(handle) if x == "*EOF*" Break endif start=0 ptime=strIndexNC(x, "time=", start, @FWDSCAN) If ptime == 0 ;I will put code here later else a=StrSub(x, ptime, 11) b=StrTrim(a) ns=strindexnc(b, "time=", 0, @FWDSCAN) ne=strindexnc(b, "ms", 0, @FWDSCAN) sl=StrLen(b) pn=strsub(b, ns+5, -1) pn2=strsub(pn, 1, strlen(pn)-2) If pn2 > 50 Runwait("c:\s.bat", 2) endif endif endwhileI am sure this can be done my brain is just not working right.
I recommend a flag file.
C:\NORUNSMS.TXTIf you want to squelch SMS, just create the file, otherwise make sure it is deleted.
THen in your LOGIN.BAT file you can do an:
IF EXIST C:\NORUNSMS goto SKIPSMSor something like that.
The environment variable does not persist across those DOS sessions.
Article ID: W14585
Filename: Environment Variables Across DOS Sessions.txt
File Created: 2000:07:28:14:27:42
Last Updated: 2000:07:28:14:27:42