dmaxj Posted May 10, 2004 Posted May 10, 2004 i am trying to copy a file from my local drive to a network drive. I have two buttons- a BROWSE button that allows you to choose the local path of the file ( this works fine, because I can see the path results in field.) The other button is a SEND button, that executes the TrFile-CopyFile function. When I click the SEND button I get "$$5" returned to my status field. I have yet to find any documenation on what "$$5" means. Any help is appreciated. Thanks
Fitch Posted May 10, 2004 Posted May 10, 2004 Could it be $$-5000 Insufficient access privileges or $$-50 Parameter error? Does your script look something like this: Set Field[gErrorCode, External("TrFile-CopyFile", gSourceFilePath & "|" & gDestFilePath )]
dmaxj Posted May 10, 2004 Author Posted May 10, 2004 My script follows: Set Field["protocolTransferStatus", External("TrFile-CopyFile", protocolLocalPath & "|" & "C:Documents and SettingsAll UsersDocumentsnetworkDriveForPdfs")] I am thinking that I can just copy the file previously chosen from my TrFile-Get FileSpecDialog function to the above path. Thanks
dmaxj Posted May 10, 2004 Author Posted May 10, 2004 Alright, I worked with it some more and managed to get the drive letter (z:) returned to a global field after using the TrFile-MountDisk function. Now i am getting error code $$123 ( never seen this one either and its not in the TroiFile docs) here is my new script line that is throwing my error: Set Field["protocolTransferStatus", "External("TrFile-CopyFile", protocolLocalPath & "|" & protocolTransferStatus)"] thanks for the help
Fitch Posted May 10, 2004 Posted May 10, 2004 You've got one field for your local path, and one for calling the function. Why don't you make life easy and create one more global for your destination path, and use the FileSpec To FullPath function so you can see what's going on.
dmaxj Posted May 11, 2004 Author Posted May 11, 2004 Yeah, that 's what I had to do. I got it all worked out. I didn't realize that I had to name the file that I want to copy. I figured that the filename would just carry over - this is not the case. i did setup two global fields to help me debug. Thanks.
Recommended Posts
This topic is 7569 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now