[Cl...] Posted April 30, 2020 Share Posted April 30, 2020 filePath = "T:\DMR\CMM Data\101228 Op-10_Rev_A\"+ getRecordHead("planid")+ getRecordHead("partnbinc")+".txt" if fileExists(filePath) then // if it can't find the file then it will not error out. if response == "Set-up" copyFile(filePath,"T:\DMR\CMM Data\Setup\theresults.txt") else copyFile(filePath,"T:\DMR\CMM Data\Production\theresults.txt") endif //inquireList else message("could not find file : " + filePath) endif //fileExists ******************************************************************************************** In the code above, why can't I re-name the text files from theresults.txt to 123456.txt? I tried it, and Calypso won't allow it. Link to comment Share on other sites More sharing options...
[Er...] Posted April 30, 2020 Share Posted April 30, 2020 Syntax is copyFile(from,to). Looks like you have it the other way around. copyFile(to,from) As is: take move to So you end up with .txt's named "theresults". Link to comment Share on other sites More sharing options...
[Cl...] Posted April 30, 2020 Author Share Posted April 30, 2020 That was a type-o. I corrected it. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in