View Full Version : Code ver #5 to #6
Bruce
07-29-2006, 03:14 PM
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);
yosik
07-29-2006, 04:04 PM
As far as the syntax is concerned, I don't see any problems.
What about the variable you are using?
Yossi
Roboblue
07-29-2006, 05:55 PM
I just tried your code as is except I did a
company_result = "Test"
Folder.Rename(_DesktopFolder.."\\IPT\\Offices\\New Company", _DesktopFolder.."\\IPT\\Offices\\"..company_result );
and it changed the folder name just fine. So, as Yosik said, it has to be your company_result variable and not the syntax.
Are you getting an error, or it just doesn't change the name?
Bruce
07-29-2006, 11:57 PM
doesn't change the name. Thx guys, I'll take a look at the code again.
Roboblue
07-30-2006, 05:05 AM
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?
Bruce
07-30-2006, 10:38 AM
nah I'm just out of the loop here, it was in the variable. Thanks for your .apz
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.