ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Batch files and texmf
@ 2007-08-10 18:29 Adrian Drury
  2007-08-10 19:15 ` Idris Samawi Hamid
  0 siblings, 1 reply; 12+ messages in thread
From: Adrian Drury @ 2007-08-10 18:29 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 485 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 581 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Batch Files and texmf
@ 2007-08-10  3:28 Idris Samawi Hamid
  2007-08-10  5:17 ` Hamid Kamrani
  0 siblings, 1 reply; 12+ messages in thread
From: Idris Samawi Hamid @ 2007-08-10  3:28 UTC (permalink / raw)
  To: ntg-context

Dear gang,

To all you expert script writers and batch wizards on Windows, I have a  
question:

I want to create a batch file to open a program so that it will search the  
contents of C:\ConTeXt, which contains my entire system, including  
subdirectories. For example, if foo.tex is a file in C:\ConTeXt, and  
goo.exe is some program, then for

> goo.bat foo.tex

I want goo to seach C:\ConTeXt for foo.tex. Is there a straightforward way  
to edit the following to get this effect?

============================
rem batch file

goo %
============================

Any pointers will be appreciated.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-08-10 19:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 18:29 Batch files and texmf Adrian Drury
2007-08-10 19:15 ` Idris Samawi Hamid
  -- strict thread matches above, loose matches on Subject: below --
2007-08-10  3:28 Batch Files " Idris Samawi Hamid
2007-08-10  5:17 ` Hamid Kamrani
2007-08-10  9:54   ` Hans Hagen
2007-08-10 14:53     ` Idris Samawi Hamid
2007-08-10 15:46       ` Hans Hagen
2007-08-10 16:00         ` Idris Samawi Hamid
2007-08-10 16:09           ` Hans Hagen
2007-08-10 16:38             ` Idris Samawi Hamid
2007-08-10 16:47               ` Hans Hagen
2007-08-10 17:04                 ` Idris Samawi Hamid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).