RenameFile bug in XP?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
tbrahmer
Newbie
Posts: 15
Joined: Thu May 06, 2010 10:14 pm

RenameFile bug in XP?

Post by tbrahmer » Wed Aug 25, 2010 4:07 am

The following 1 line script is working for me on a windows 7 machine:

Code: Select all

RenameFile>RiceGroup1\RiceGroup1_4999.pdf,RiceGroup1\testing123.pdf
It is failing for me on a windows xp (sp3) machine. On XP it is leaving the 'RiceGroup1_4999.pdf' file in the 'RiceGroup1' folder and making a copy file called 'RiceGrou' (8 characters only). Curious about the 8 chars (seems like dos 8.3) I tested a shorter file name:

Code: Select all

RenameFile>RiceGroup1\RiceGroup1_4999.pdf,RiceGroup1\test.pdf
Running this on XP again leaves the original 'RiceGroup1_4999.pdf' in the 'RiceGroup1' folder and creates a copy called 'test.pdf' in the folder instead. At least the file name was correct when using this shorter version, but it still left the original and made a copy instead, strange...

Works perfectly on my Win7 machine, fails on my XP(sp3) machine. I used 12.0.5 first and then upgraded to 12.0.7 - same result. Can anyone duplicate this? This seems similar to this post: http://www.mjtnet.com/usergroup/viewtopic.php?t=6336

obfusc88
Pro Scripter
Posts: 88
Joined: Wed Mar 14, 2007 6:22 pm

Post by obfusc88 » Thu Dec 09, 2010 12:55 am

I just posted a similar problem here: http://www.mjtnet.com/forum/viewtopic.php?p=29191#29191

I used MoveFile as a temporary work around.

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