Flags for fpcopy
Brian K. White
brian at aljex.com
Wed May 10 21:33:34 PDT 2006
----- Original Message -----
From: "Brian K. White" <brian at aljex.com>
To: <filepro-list at lists.celestial.com>
Sent: Thursday, May 11, 2006 12:10 AM
Subject: Re: Flags for fpcopy
>
> ----- Original Message -----
> From: "Shuman, Mike" <MSHUMAN at KDA.STATE.KS.US>
> To: <filepro-list at lists.celestial.com>
> Sent: Wednesday, May 10, 2006 9:45 AM
> Subject: Flags for fpcopy
>
>
> Windows XP
> filePro 5.0.09DN9
>
> Would like to execute fpcopy from a batch file.
> Are there flags for use with fpcopy?
> Would like to take care of the naming, formats
> to copy, etc. so the user does not make the decision.
>
> If there are flags where might I find a list of them?
>
> --------------
>
> It has no command line arguments.
> It can be automated be feeding it keystrokes as long as you are careful
> about things that change it's behaviour like setting PFME on or off.
> see: http://www.aljex.com/bkw/filepro/#fpcopyall
> I wrote this a zillion years ago. 5 or 6 really but that's 50 in dog years
> and a zillion in computer years. There are things I'd change now but it
> does work so there is little incentive.
>
> This has interactive prompts, but you can easily doctor the script to
> replace the "read" commands which takes values from the user, and replace
> them with $1 $2 $3 etc.. to get values from the command line instead, and
> not have to touch the hairy parts that come later. Just replace or edit
> the "gather info" section and leave all the rest alone.
>
> Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
> +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
> filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
I'm sorry.
I completely overlooked that you said WindowsXP
Windows cmd.exe shell does support pipelining a little.
And a windows version of that could probably be made.
But I never tried to and have no idea if it's worth trying.
I think the escape characters you'll have to do by making a file that has
the characters you need and using the type command to read the file instead
of just echoing them directly.
Since you need to mix escape characters and some static keystrokes and some
variables, you'll probably actually have to use a sequence or series of
seperate type & echo commands that build a temp file, and then use type to
pipe the temp file into fpcopy.
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
More information about the Filepro-list
mailing list