RenameFile fail

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

RenameFile fail

Post by fightcancer » Tue Jan 04, 2022 7:47 pm

What does code 115 indicate please? The MSDN link on the Help page doesn't help in this case.

Watch List shows:
0: CF_RESULT_CODE=115

Thanks!

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: RenameFile fail

Post by Dorian (MJT support) » Tue Jan 04, 2022 8:07 pm

115 in Hex is 0x73.

On the link you mentioned it states "Rename operation was specified but the destination path is a different directory. Use the move operation instead.".
Yes, we have a Custom Scripting Service. Message me or go here

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: RenameFile fail

Post by fightcancer » Tue Jan 04, 2022 9:05 pm

Oh Hex! My bad. Thank you!

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: RenameFile fail

Post by fightcancer » Thu Jan 06, 2022 5:38 pm

Now I'm getting CF_RESULT_CODE=2 after attempting to rename a file. What's the description for that problem please? (decimal 2 = hex 0002)
https://docs.microsoft.com/en-us/window ... dfrom=MSDN

Thanks!!

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: RenameFile fail

Post by Dorian (MJT support) » Thu Jan 06, 2022 10:43 pm

According to this : https://docs.microsoft.com/en-us/window ... es--0-499-

It's "File Not Found".
Yes, we have a Custom Scripting Service. Message me or go here

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: RenameFile fail

Post by fightcancer » Thu Jan 06, 2022 10:49 pm

Thanks!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts