Jump to content

PCM naming


---
 Share

Recommended Posts

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

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

 Share

×
×
  • Create New...