www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/22/19:21:43

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bash command file and windows pifs
Date: Wed, 22 Nov 2000 23:55:55 +0000
Organization: Customer of Energis Squared
Lines: 24
Message-ID: <cvlo1t47lh70t10duksb8o31vhoql4g0ov@4ax.com>
References: <ZTAQ5.894$BL DOT 53846 AT bgtnsc05-news DOT ops DOT worldnet DOT att DOT net>
NNTP-Posting-Host: modem-52.actinium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 974937338 28216 62.136.64.52 (22 Nov 2000 23:55:38 GMT)
NNTP-Posting-Date: 22 Nov 2000 23:55:38 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Todd Beckering" <ToddBeckering AT worldnet DOT att DOT net> wrote:

> I'm trying to associate a bash command file with a windows file type, and am
> having a problem.  I set up the associating pif command line:
> bash_path my_command_file_path %1
> but when I double click on a file, bash executes the file I click on (%1),
> instead of my command file.  It looks like windows is executing:
> bash_path %1
> I've used pifs for other command files, and they work fine, including
> parameters.  It's the %1 that seems to throw a monkey wrench in things.
> Any pointers on how to do this?

From your description of the problem it looks like you are entering
the %1 in the "Cmd line" field of the PIF settings.  The %1 is treated
literally, but it's possible to use a ? to generate a dialog box each
time the program is run, asking for the parameter value.

If that's not what you wanted, then I don't think you really want a
PIF file either (except perhaps one to set memory requirements etc.)
Instead the %1 will form part of the action field in the File Type
edit box (as someone else has suggested).

Sorry for the late reply.  I hope this helps in some way, or that you
already solved the problem.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019