This is a line of code from a ver# 5 project. It doesn't seem to work in ver#6. Can anyone see an issue in there anywhere?
Folder.Rename(_DesktopFolder.."\\IPT\\Offices\\New Company", _DesktopFolder.."\\IPT\\Offices\\"..company_result );
Professional Software Development Tools
This is a line of code from a ver# 5 project. It doesn't seem to work in ver#6. Can anyone see an issue in there anywhere?
Folder.Rename(_DesktopFolder.."\\IPT\\Offices\\New Company", _DesktopFolder.."\\IPT\\Offices\\"..company_result );
As far as the syntax is concerned, I don't see any problems.
What about the variable you are using?
Yossi
I just tried your code as is except I did a
and it changed the folder name just fine. So, as Yosik said, it has to be your company_result variable and not the syntax.Code:company_result = "Test" Folder.Rename(_DesktopFolder.."\\IPT\\Offices\\New Company", _DesktopFolder.."\\IPT\\Offices\\"..company_result );
Are you getting an error, or it just doesn't change the name?
doesn't change the name. Thx guys, I'll take a look at the code again.
Bruce
Just to see if it's your AMS install, or some system glitch, here is an apz that will create a folder and rename it.
Are you sure you have Admin privileges to rename a desktop folder?
nah I'm just out of the loop here, it was in the variable. Thanks for your .apz