Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Code ver #5 to #6

    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 );

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    As far as the syntax is concerned, I don't see any problems.
    What about the variable you are using?

    Yossi

  3. #3
    Join Date
    Dec 2003
    Posts
    891
    I just tried your code as is except I did a
    Code:
    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?

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    doesn't change the name. Thx guys, I'll take a look at the code again.

  5. #5
    Join Date
    Dec 2003
    Posts
    891
    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?
    Attached Files

  6. #6
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    nah I'm just out of the loop here, it was in the variable. Thanks for your .apz

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts