🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4633

Re: Batch scripting vraag (W2K)

#4633
From: Marty
Date: Thu, 17 Jul 2003 22:31
35 lines
1891 bytes
"Luc Kumps" <NOkumpsSPAM@pandora.be> wrote in message news:<uNwRa.15652$F92.1930@afrodite.telenet-ops.be>...
> "Marty" <marty@pandora.be> wrote in message
> news:ba227f77.0307170235.1c73330f@posting.google.com...
> > FOR %%g in (GT*.txt) DO (
> > FIND /n /i "Reply from" "%%g"
> > )
> 
> Je zou dit kunnen vervangen door:
> 
> FOR %%g in (GT*.txt) DO call testfile.bat "%%g"
> 
> En in testfile.bat zet je dit:
> 
> FIND /n /i "Reply from" "%1"
> if errorlevel 1 goto oei
> echo %1 antwoordt
> goto done
> :oei
>  echo %1 antwoordt niet
> :done
> 
> 
> Luc K

ik ga dit morgen testen! Als ik de 'if errorlevel 1' statement
gebruikte onmiddellijk in de for statement, liep het helaas vast. Hij
deed de checks wel op 'Reply from' maar er kwam altijd, gevonden of
niet, dezelfde errorlevel terug. Nogal ambetant als je probeert een
onderscheid te maken...

Alvast bedankt en ik laat morgen iets weten.

------------------
Imagination is more important then knowledge.
(A. Einstein)
Technical Details
Message-ID: <ba227f77.0307171431.26995e49@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <ba227f77.0307170235.1c73330f@posting.google.com> <uNwRa.15652$F92.1930@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,a3661f50520623e8
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-07-17 15:31:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: marty@pandora.be (Marty)
Newsgroups: be.comp.programming
Subject: Re: Batch scripting vraag (W2K)
Date: 17 Jul 2003 15:31:22 -0700
Organization: http://groups.google.com/
Lines: 35
Message-ID: <ba227f77.0307171431.26995e49@posting.google.com>
References: <ba227f77.0307170235.1c73330f@posting.google.com> <uNwRa.15652$F92.1930@afrodite.telenet-ops.be>
NNTP-Posting-Host: 213.224.83.72
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1058481083 30683 127.0.0.1 (17 Jul 2003 22:31:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 17 Jul 2003 22:31:23 GMT