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
Printable View
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
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.
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?
[Now asked on VB sister site https://www.vbforums.com/showthread....find-jpg-files ]
VB.NET:
FileSystem Class
and its methods:
GetDirectories
GetFiles
MoveFile
File size: https://stackoverflow.com/questions/...size-in-vb-net
You asked it in a Programming Forum! it means you are going to answer about programming, not about the complete solution! Doesn't it?