Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Changing filename using VB6 (VB6, win2000)

    I have a folder with 10 files named j1.jpg, j2.jpg. I want to open the folder and change all the file names to ba1.jpg, ba2.jpg, ba3.jpg automatically. Can someone start me off in the right direction with some beginner code for an cmdOK button_click. thanks a lot.

  2. #2
    5 Star Lounger Ruff_Hi's Avatar
    Join Date
    Feb 2001
    Location
    New York, New York, USA
    Posts
    768
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Changing filename using VB6 (VB6, win2000)

    look up the VBA or VB help file for filescriptobject then search for .rename
    (Location Australia, then UK, but now USA. Heart, outlook, attitude, etc always Australian)
    Quote: "All Happiness is the release of internal pressure"

  3. #3
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Changing filename using VB6 (VB6, win2000)

    Try <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=vb&Number=61745&page=&view= &sb=&o=&vc=1Thread>This Thread</A> and see if it can help.

    Andrew C

Posting Permissions

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