CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: 2 Ways to Rename a file, please help!

    2) Hide the (U) within the list box somehow?
    Presumably you are using a command like List1.Additem FileName, so why cant you check for the "U" or whatever, prior to adding it to the list ?



    If you are actually trying to get rid of the offending files then, for a one off solution to problems like yours, I normally turn to DOS

    ie, Start, Run, CMD, OK

    here you can do things like

    REN *U.* *.* (renames and file ending with U to same name, but dropping the U )

    or

    DEL *U.* (deletes any file ending with U)

    I am not sure exactly what you are trying to do, but DOS sounds like a quick fix to me

    (Make sure you have backups of all your files in case you mess them up !)
    Last edited by George1111; December 14th, 2008 at 06:50 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
  •  





Click Here to Expand Forum to Full Width

Featured