in reply to Re: Making a perl program look like a regular file on Win32?
in thread Making a perl program look like a regular file on Win32?

Thanks for all your comments.

Roger, yes, your "insane" suggestion is along the lines that I was thinking. :-) However, I fear the Windows Driver Dev Kits may be a little beyond my Perl dev skills. :-( (I will go on the hunt for software that may achieve this, however.)

The pipe suggestions would normally be ideal, but don't work for my specific circumstance. Basically, the DOS app runs continually, but periodically reads the file which I want to intercept access to. (My fault for not detailing that in my problem description!)

You have all given me food-for-thought, however, and I will renew my searching and go read up on named pipes!

Many thanks, Neil

  • Comment on Re: Re: Making a perl program look like a regular file on Win32?

Replies are listed 'Best First'.
Re: Re: Re: Making a perl program look like a regular file on Win32?
by clintp (Curate) on Mar 03, 2004 at 14:01 UTC
    I've had good luck with feeding DOS apps UNC names (\\system\file) in the past, if you can make the file being read a UNC filename then host it on a separate box.

    This "separate box" being a Unix machine using Samba (or some other file sharing system). The "file" can then be a unix named pipe as mentioned in previous responses, or you can hack samba directly to run programs to generate I/O to fill this "file" as it's being served out.

    Well, I mean as long as we're talking insane ideas....