How to move a file from one directory to another using ignition scripting?

uploaded a png file that code I have tried and what error I got that is also there.

NOTE: It is generally better if you post your code as preformatted text use the </> button and then paste your code. It makes it much more friendly to read.

I would also be carful publishing real IP addresses to a public forum.

The user that the Ignition Service is running under does not have write permissions to the folder you are trying to move the file from or into.

The error is that your script/user does not have the right permissions.

c:\Program files\ usually requires administrative privileges.

You can also just use

os.rename(currentFilePathName, newFilePathName)

It essentially does the same thing as shutil.move since the act of moving a file is really just re-addressing it’s pointer value, aka, renaming it.