I am trying to copy a file from one location to another I keep getting error messaeg "file could not be opened". I am using the "copy local file" action.

Any help would be great.

Thanks
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Hello blade2. can you post the wise script code you are using to copy a file? I have lots of theories but it would help if I saw what you were using. Thx! --Clark
Answered 10/15/2008 by: cbohs
Senior Yellow Belt

Please log in to comment
0
Hi Clark

This is the copy code itself, do you want the whole script? I have reduced it to just copying between two temp folders on the computer to see if there are issues with permissions on the folders. Basically the variables TEMP FOLDER and TEMP OTHER = "Temp" and "Tempbox" on the c: of the local machine

item: Copy Local File
Source=%INST%%TEMP FOLDER%\word.txt
Destination=%INST%%TEMP OTHER%\word.txt
Flags=0000000011000010
end


Thanks

Luke
Answered 10/15/2008 by: blade2
Blue Belt

Please log in to comment
0
item: Copy Local File
Source=%INST%\%TEMP FOLDER%\word.txt
Destination=%INST%\%TEMP OTHER%\word.txt
Flags=0000000011000010
end

Hi Luke, do you need a "\" between your variables in both source and destination? See above for the mod.

--Cb
Answered 10/15/2008 by: cbohs
Senior Yellow Belt

Please log in to comment
0
Hi Clark

Thanks for the suggestion.
Turns out major fatigue set in. I was just being a knob (feel free to replace with a nasty expletive of your choice) and not looking at the error message correctly. I have cracked it though.

Cheers

Luke
Answered 10/15/2008 by: blade2
Blue Belt

Please log in to comment
0
Hello again Luke. So what was the fix that made it work? Just curious. P.S. I would never swear at a fellow wise scripter! :-) --Clark
Answered 10/15/2008 by: cbohs
Senior Yellow Belt

Please log in to comment
0
I got rid of the %INST%. What kept throwing me was not following through properly with the rebuild of the transform that controls the whole thing too. Every time I made a change to the wise script (and there was many) I wouldn't always rebuild the transform so I kept getting false errors from before the change and it sent my mind going loop de loop over the wrong thing, hence not looking at the error message correctly. overall just my being a twat and probably in need of a good sleep.

If all of that sounds gibberish, probably cause it is.
Answered 10/15/2008 by: blade2
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity