CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: move jpg files

Hybrid View

  1. #1
    Join Date
    Jul 2022
    Posts
    12

    move jpg files

    Hi
    Hope this is the correct place for this

    I want to search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on anotherl hard drive


    Thank you

  2. #2
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by build View Post
    Hi
    Hope this is the correct place for this

    I want to search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on anotherl hard drive


    Thank you
    Hmmmmmm No One knows how to do this then ? 66 views no one

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: move jpg files

    It is easy enough using Windows API functions like FindFirstFile/FindNextFile/FindClose/GetFileSize to enumerate the files and check their sizes, then MoveFile/CopyFile to move/copy the files.

    Unfortunately I don't use VB6, so cannot help you more.
    However, you could find the code examples for VBA.
    Victor Nijegorodov

  4. #4
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by VictorN View Post
    It is easy enough using Windows API functions like FindFirstFile/FindNextFile/FindClose/GetFileSize to enumerate the files and check their sizes, then MoveFile/CopyFile to move/copy the files.

    Unfortunately I don't use VB6, so cannot help you more.
    However, you could find the code examples for VBA.
    Thank you for getting back to me

    Sorry not got a glue to what you are talking about with them API functions

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: move jpg files

    Are going to implement this "search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive" in VB6 or in VBA or in VB.Net?
    Victor Nijegorodov

  6. #6
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by VictorN View Post
    Are going to implement this "search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive" in VB6 or in VBA or in VB.Net?

    Anyone I'm not bothered which one

    It will be on windows ten, so which is easy

  7. #7
    Join Date
    Jan 2013
    Location
    Largo, FL.
    Posts
    356

    Re: move jpg files

    Quote Originally Posted by build View Post
    Hi
    Hope this is the correct place for this

    I want to search for jpg files bigger than 10k on drive c: then move/copy them to a new folder on another hard drive


    Thank you
    How often do you need to do this?

  8. #8
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by Steve R Jones View Post
    How often do you need to do this?
    Hi

    I have 30 hard drives where I have loads of jpg files

    So how many times will I need to run it is 30 plus

    Can I ask why you ask that/

    Kind Regards

  9. #9
    Join Date
    Jan 2013
    Location
    Largo, FL.
    Posts
    356

    Re: move jpg files

    Quote Originally Posted by build View Post
    Hi

    I have 30 hard drives where I have loads of jpg files

    So how many times will I need to run it is 30 plus

    Can I ask why you ask that/

    Kind Regards
    Even with 30 drives - you'd be done by now if you had simply searched the drives and copied/cut and pasted.... I'm guessing that this might also be more than a one time thing... But without all the details, all we can do is guess.

  10. #10
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by Steve R Jones View Post
    Even with 30 drives - you'd be done by now if you had simply searched the drives and copied/cut and pasted.... I'm guessing that this might also be more than a one time thing... But without all the details, all we can do is guess.
    Yes I can do that (and Have) BUT that way would NOT only get jpg above a certain size

    Also it takes a lot longer.

    "But without all the details, all we can do is guess"

    What more details do you want?

  11. #11
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: move jpg files

    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  12. #12
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: move jpg files

    Victor Nijegorodov

  13. #13
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by VictorN View Post
    Sorry I do not know any Coding at All so thank you for trying to help BUT i'm lost

  14. #14
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: move jpg files

    Quote Originally Posted by build View Post
    Sorry I do not know any Coding at All so thank you for trying to help BUT i'm lost
    If you "do not know any Coding at All" then why do you ask it in the Programming Forum?
    Please, note:
    Forum: Visual Basic 6.0 Programming
    Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.
    Victor Nijegorodov

  15. #15
    Join Date
    Jul 2022
    Posts
    12

    Re: move jpg files

    Quote Originally Posted by VictorN View Post
    If you "do not know any Coding at All" then why do you ask it in the Programming Forum?
    Please, note:
    Because I thought this was the place to get some idea how to do what I wanted and to be shown how to do it

    WE have to LEARN som time

Page 1 of 2 12 LastLast

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