Results 1 to 5 of 5

Thread: Name as to rename files

Hybrid View

  1. #1
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Name as to rename files

    What are the values of changer and newnam?

    It seems to me that changer will only contain the file name, and not the path (which is also needed).


    By the way, why are you using GoTo's the way you are? A "Do Loop" would be more appropriate, eg:
    VB Code:
    1. ..
    2. 'alpha:
    3. Do
    4. ...
    5.  
    6. ...
    7. 'GoTo alpha:
    8. 'Omega:
    9. '    If num < hour Then
    10. '        num = num + 1
    11. '        GoTo alpha:
    12. '    End If
    13.   num = num + 1
    14. Loop While num <= hour

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    3

    Re: Name as to rename files

    To be honest I didn't know about Do Loop or how to use it, thanks for that tip.

    When I debug the program 'changer' and 'newnam' both have the full path and filename. (In fact I copied and pasted the paths and filenames for my test program from the fields window when debugging the first program).

Posting Permissions

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



Click Here to Expand Forum to Full Width