-
July 31st, 2022, 01:12 PM
#1
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
-
August 1st, 2022, 12:20 PM
#2
-
August 1st, 2022, 01:04 PM
#3
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
-
August 1st, 2022, 03:48 PM
#4
Re: move jpg files
Originally Posted by VictorN
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
-
August 1st, 2022, 03:59 PM
#5
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
-
August 2nd, 2022, 09:03 AM
#6
Re: move jpg files
Originally Posted by VictorN
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
-
August 2nd, 2022, 03:01 AM
#7
Re: move jpg files
Originally Posted by build
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?
-
August 2nd, 2022, 07:35 AM
#8
Re: move jpg files
Originally Posted by Steve R Jones
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
-
August 4th, 2022, 02:05 AM
#9
Re: move jpg files
Originally Posted by build
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.
-
August 4th, 2022, 07:10 AM
#10
Re: move jpg files
Originally Posted by Steve R Jones
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?
-
August 2nd, 2022, 03:04 AM
#11
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)
-
August 2nd, 2022, 10:14 AM
#12
Re: move jpg files
Victor Nijegorodov
-
August 2nd, 2022, 12:07 PM
#13
Re: move jpg files
Originally Posted by VictorN
Sorry I do not know any Coding at All so thank you for trying to help BUT i'm lost
-
August 2nd, 2022, 12:22 PM
#14
Re: move jpg files
Originally Posted by build
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
-
August 2nd, 2022, 01:37 PM
#15
Re: move jpg files
Originally Posted by VictorN
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|