09-03-2009 02:35 PM
I checked the posts but couldn't find anything that explained my particular situation.
I am trying to rename a file by changing the extension from .tmp to .txt
That's it!
It is creating the new file (.txt), but not deleting the old (.tmp). I also attached an image of the error message.
What am I missing other than my sanity?
Solved! Go to Solution.
09-03-2009 02:42 PM - edited 09-03-2009 02:43 PM
Hi epster88,
did you check both path using probes or indicators?
For safety you should always use file functions to manipulate filenames (strip path/build path/GetFileExtension)...
09-03-2009 02:43 PM - edited 09-03-2009 02:47 PM
The second path should be a directory if you're trying to move.
Apologies... The only issues I see with this is, that either the file already exists, or there is write permission error..
09-03-2009 02:49 PM
09-03-2009 02:54 PM - edited 09-03-2009 02:57 PM
My bad... guess i'm sleepy... I tried running it... it works fine in my computer...
By it I meant the code in OP
Its working on my system for a hard disk path...
09-03-2009 03:12 PM
That's it. I forgot that this account could only write to the directory, not delete or edit.
Thanks NitinD