Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: FpCopy from command line  (Read 2628 times)
0 Members and 1 Guest are viewing this topic.
JL_CAD
Member

Posts: 15


View Profile
« on: July 30, 2007, 11:03:45 AM »

Is there a way to use fpcopy from the command line?

Are there any flags?

fp/fpcopy src dst (1-copy File Layout & Format Only) (3-Remove All Passwords)
Logged
Joe Chasan
Member

Posts: 62


View Profile WWW
« Reply #1 on: July 31, 2007, 09:18:11 AM »

no - there are no command line flags.  it would be nice if there were.
for now, the best you can do might be to pipe the answers to each fpcopy question as STDIN to the fpcopy command.
Logged
JL_CAD
Member

Posts: 15


View Profile
« Reply #2 on: August 01, 2007, 08:34:25 AM »

Can you pipe to fpcopy through a dos batch file?

I tried the follwoing:

echo fname | fpcopy

...but no luck.
Logged
kenbrody
Administrator

Posts: 82


View Profile
« Reply #3 on: August 01, 2007, 10:38:26 AM »

Unfortunately, under Windows, using stdin for input means giving up virtually anything besides the standard characters.  You cannot input arrow keys, F-keys, Home/End/PgUp/PgDn, and so on.  Only letters, numbers, punctuation, and a few "extras" like Esc, Enter, and Backspace, can be input via stdin.  Using console input to allow access to all the "special" keys means giving up the ability to redirect the input.

Because filePro requires the use of the "special" keys, input redirection had to be sacrificed.  Sorry, but it's a limitation of the Windows platform.
Logged

Kenneth Brody
aka "Mr. filePro"  :-)
JL_CAD
Member

Posts: 15


View Profile
« Reply #4 on: August 02, 2007, 06:23:48 AM »

I was able to write a script to run Filepro and copy file selected by the user. This way I can maintain the permissions of the folder to the new folder.


retry1:
InputBox,src, AutoIt, Please Enter Source Filename!
MsgBox, 3, AutoIt, %src%
IfMsgBox, CANCEL, Goto, cancel1
IfMsgBox,NO, Goto, retry1

retry2:
InputBox, dst, AutoIt, Please Enter New Filename!
MsgBox, 3, AutoIt, %dst%
IfMsgBox, CANCEL, Goto, cancel1
IfMsgBox, NO, Goto, retry2

; Warning message
SplashTextOn, 300, 100, AutoIt, Please do not touch the keyboard during the script.
Sleep, 2000

Run, xcopy f:\\filepro\\%src% f:\\filepro\\%dst% /O /T /E /i

Sleep, 1000

Run, F:\\BAT\\FILEP45.bat, F:\\

Sleep, 1000
Send, f
Sleep, 100
Send, b
Sleep, 100
Send, %src%{ENTER}
Sleep, 100
Send, %dst%{ENTER}
Sleep, 100
Send, 1
Sleep, 100
Send, 3
Sleep, 1000
Send, x
Sleep, 100
Send, x

SplashTextOff
cancel1:
Exit
Logged
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!