/build/static/layout/Breadcrumb_cap_w.png

wise script copy

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

Answers (6)

Posted by: cbohs 15 years ago
Senior Yellow Belt
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
Posted by: blade2 15 years ago
Blue Belt
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
Posted by: cbohs 15 years ago
Senior Yellow Belt
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
Posted by: blade2 15 years ago
Blue Belt
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
Posted by: cbohs 15 years ago
Senior Yellow Belt
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
Posted by: blade2 15 years ago
Blue Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ