attaching document images to a filepro file

Fairlight fairlite at fairlite.com
Wed May 2 17:31:29 PDT 2018


Depends on the OS.  Old SCO used to have a command-line length limitation.
I want to say either 1024 or 2048 characters.  So if your path was too
long, combined with other arguments, you'd essentially get an error and
nothing would happen.

There are ways around that.  Use backtick execution.  Store the filename in
a short-pathed file, then "command arg1 arg2 ... `cat short_path` arg3 ..."

With the current crop of Linux systems (and for a long time now), it's
really barely an issue.  I think combined environment and CLI space is
128KB.

However, you can still do things which fail.  `rm -rf *` in a directory
with 5000 files can still result in "argument list too long", for example.
(Just hit that the other day.)

Linux is pretty forgiving, but most operating systems have a policy in line
with "limited benevolence". :)

mark->


On Wed, May 02, 2018 at 08:13:41PM -0400, Richard Kreiss thus spoke:
> Set a variable to point to where image files are located. SET
> PF_Picture=N:\appl\pictures
> 
> The depending of the file extension get the correct envirn variable.  
> 
> If the file extension is associated with a particular program doing a system
> call  to start the program should handle viewing the file.  I have a routine
> that creates a CSV file and then opens Excel to view the file.  This is
> something that both Windows and *nix should be able to do without issue .
> That is as long as the program being called can handle be passed a file
> name.
> 
> Richard Kreiss
> GCC Consulting
> 
> > -----Original Message-----
> > From: Filepro-list [mailto:filepro-list-
> > bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Fairlight
> via
> > Filepro-list
> > Sent: Wednesday, May 2, 2018 8:00 PM
> > To: filepro-list at lists.celestial.com
> > Subject: Re: attaching document images to a filepro file
> > 
> > And other image files?  I believe the OP said JPEGs as well?  :)
> > 
> > m->
> > 
> > On Wed, May 02, 2018 at 07:39:27PM -0400, Richard Kreiss via Filepro-list
> thus
> > spoke:
> > > The suggestions given were spot on.
> > >
> > > However, there is a way to avoid some of the issues pointed out.  Use
> > > the filePro config file and set your own environmental variable to
> > > point to the location of  your PDF files.
> > >
> > > Windows
> > > I.e. set PFPDFFile=N:\appl\PDF_Files - (N=Windows Drive Letter,
> > > location of your PDF files is your choice).  The only issue is the
> > > file name.  You can use qq=getenv("PFPDFFile") when you want to open a
> > > pdf file.  If this extension has been assigned to a particular
> > > program, opening the PDF is simple.
> > >
> > > You could also create a browse to list the available PDF files and
> > > allow for selecting the one the user wants.
> > >
> > > Once open, all of the Windows functions in the PDF reading program are
> > > available to the user.
> > >
> > >
> > > Richard Kreiss
> > > GCC Consulting
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Filepro-list [mailto:filepro-list-
> > > > bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Ron
> > > > bounces+Fischer
> > > via
> > > > Filepro-list
> > > > Sent: Tuesday, May 1, 2018 4:19 PM
> > > > To: filepro-list at lists.celestial.com
> > > > Subject: attaching document images to a filepro file
> > > >
> > > > Hi
> > > >
> > > > Don't usually post but do read all your posts every day.
> > > >
> > > > I was wondering if I can attach a document (PDF) or (JPG) file to a
> > > > record
> > > in a
> > > > filepro file.
> > > >
> > > > ie; a PDF invoice to an invoice record for viewing in filepro.
> > > >
> > > > Thank you all for all the past postings, and thank you in advance
> > > > for any
> > > help
> > > > provided.
> > > >
> > > > Regards
> > > >
> > > > Roland Fischer
> > > > Data Processing Mgr
> > > > EPC Associates, Inc.
> > > > Ronkonkoma, NY
> > > >
> > > >
> > > >
> > > > -------------- next part -------------- An HTML attachment was
> > > > scrubbed...
> > > > URL: <http://mailman.celestial.com/pipermail/filepro-
> > > > list/attachments/20180501/dd2c78ea/attachment.html>
> > > > _______________________________________________
> > > > Filepro-list mailing list
> > > > Filepro-list at lists.celestial.com
> > > > Subscribe/Unsubscribe/Subscription Changes
> > > > http://mailman.celestial.com/mailman/listinfo/filepro-list
> > >
> > > _______________________________________________
> > > Filepro-list mailing list
> > > Filepro-list at lists.celestial.com
> > > Subscribe/Unsubscribe/Subscription Changes
> > > http://mailman.celestial.com/mailman/listinfo/filepro-list
> > >
> > 
> > --
> > Audio panton, cogito singularis.
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > Subscribe/Unsubscribe/Subscription Changes
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> 
> 

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list