From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35887 Path: news.gmane.org!not-for-mail From: "Adrian Drury" Newsgroups: gmane.comp.tex.context Subject: Batch files and texmf Date: Fri, 10 Aug 2007 11:29:06 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2018887655==" X-Trace: sea.gmane.org 1186770567 22859 80.91.229.12 (10 Aug 2007 18:29:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2007 18:29:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 10 20:29:23 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IJZEh-000672-Cs for gctc-ntg-context-518@m.gmane.org; Fri, 10 Aug 2007 20:29:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 31BC2203AD; Fri, 10 Aug 2007 20:29:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28130-02; Fri, 10 Aug 2007 20:29:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0150420382; Fri, 10 Aug 2007 20:29:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA6FC20382 for ; Fri, 10 Aug 2007 20:29:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28128-07-2 for ; Fri, 10 Aug 2007 20:29:07 +0200 (CEST) Original-Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by ronja.ntg.nl (Postfix) with ESMTP id 1E0781FE05 for ; Fri, 10 Aug 2007 20:29:06 +0200 (CEST) Original-Received: by rv-out-0910.google.com with SMTP id k15so657007rvb for ; Fri, 10 Aug 2007 11:29:06 -0700 (PDT) Original-Received: by 10.141.50.17 with SMTP id c17mr1118858rvk.1186770546054; Fri, 10 Aug 2007 11:29:06 -0700 (PDT) Original-Received: by 10.141.84.20 with HTTP; Fri, 10 Aug 2007 11:29:06 -0700 (PDT) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35887 Archived-At: --===============2018887655== Content-Type: multipart/alternative; boundary="----=_Part_9670_13026604.1186770546033" ------=_Part_9670_13026604.1186770546033 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I read the list in digest form - sorry my response won't be threaded in properly! How about this for your question, Idris? Pure DOS batch file stuff. I tested it with notepad instead of Acrobat, but I assume it should be close to working as shown here. @ echo off IF "%1"=="" GOTO NOARG for /R C:\context %%n IN (.) DO IF EXIST %%n\%1 ( Echo Found %%n\%1 start Acrobat.lnk %%n\%1 GOTO END ) :NOTFOUND echo Couldn't find %1 GOTO END :NOARG echo Specify a file name to find :END ------=_Part_9670_13026604.1186770546033 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I read the list in digest form - sorry my response won't be threaded in properly!

How about this for your question, Idris? Pure DOS batch file stuff. I tested it with notepad instead of Acrobat, but I assume it should be close to working as shown here.


@ echo off

IF "%1"=="" GOTO NOARG

for /R C:\context %%n IN (.) DO IF EXIST %%n\%1 (
Echo Found %%n\%1
start Acrobat.lnk %%n\%1
GOTO END
)

:NOTFOUND
echo Couldn't find %1
GOTO END

:NOARG
echo Specify a file name to find

:END ------=_Part_9670_13026604.1186770546033-- --===============2018887655== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2018887655==--