From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: playing with Windows drag & drop
Date: Tue, 6 Oct 2020 21:26:21 +0200 [thread overview]
Message-ID: <583a8f96-4e4e-3066-977b-7b08d7390ac0@gmx.es> (raw)
In-Reply-To: <7C331EAB-D0F4-456E-B803-8A9691CF13B3@fiee.net>
On 10/6/20 5:57 PM, Henning Hraban Ramm wrote:
>> Am 06.10.2020 um 16:18 schrieb Pablo Rodriguez <oinos@gmx.es>:
>> [...]
>> REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex
>>
>> I’m afraid it only works if the batch file and the PDF document are on
>> the same directory.
>>
>> I guess this is related to "\" in Windows paths. Is there a way to make
>> it work with the sample above?
>
> Did you try with / paths? They usually work on Windows, no need for \s.
Many thanks for your reply, Hraban.
I wish I could do that. I get the paths from a Windows .bat file.
I drop PDF docuemnts to the .bat file, this is the reason I get the
paths with backslashes.
I use something like that:
for %%A in (%*) do (
context --purgeall --arguments="PDFDoc={%%~A} b.tex
)
But to replace backslashes with slashes, I would need something like this:
for %%A in (%*) do (
context --purgeall --arguments="PDFDoc={%%%~A:\=/%} b.tex
)
But that prevents the batch file from working at all.
I don’t know whether there is a workaround for this.
Many thanks for you help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-10-06 19:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 14:18 Pablo Rodriguez
2020-10-06 15:57 ` Henning Hraban Ramm
2020-10-06 19:26 ` Pablo Rodriguez [this message]
2020-10-07 14:23 ` context
2020-10-07 14:45 ` context
2020-10-07 17:10 ` Pablo Rodriguez
2020-10-08 7:56 ` context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=583a8f96-4e4e-3066-977b-7b08d7390ac0@gmx.es \
--to=oinos@gmx.es \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).