Python Forum
Move Files based on partial Match
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move Files based on partial Match
#2
That's the trouble with AI, it requires a detailed description of the problem. The required level of detail is such that describing the program often takes more time than writing the program.

I think your approach is too limiting. You may as well make this a useful tool that you can use for moving other groups of files. Make a program that copies files matching a pattern to the specified directory. Something like "python copy.py pattern folder" where pattern would be something like "5000*.pdf". But wait, this is what the XCOPY command does in windows. Do you need to write a program at all? If XCOPY doesn't do it for you, take a look at robocopy.
Reply


Messages In This Thread
RE: Move Files based on partial Match - by deanhystad - Sep-20-2023, 04:41 PM
RE: Move Files based on partial Match - by snippsat - Sep-20-2023, 07:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy Paste excel files based on the first letters of the file name Viento 2 511 Feb-07-2024, 12:24 PM
Last Post: Viento
  partial functions before knowing the values mikisDeWitte 4 685 Dec-24-2023, 10:00 AM
Last Post: perfringo
  Making a question answering chatbot based on the files I upload into python. Joejones 1 1,336 May-19-2023, 03:09 PM
Last Post: deanhystad
  Partial KEY search in dict klatlap 6 1,350 Mar-28-2023, 07:24 AM
Last Post: buran
  python move specific files from source to destination including duplicates mg24 3 1,155 Jan-21-2023, 04:21 AM
Last Post: deanhystad
  remove partial duplicates from csv ledgreve 0 841 Dec-12-2022, 04:21 PM
Last Post: ledgreve
  Webhook, post_data, GPIO partial changes DigitalID 2 1,065 Nov-10-2022, 09:50 PM
Last Post: deanhystad
  Optimal way to search partial correspondence in a large dict genny92c 0 1,026 Apr-22-2022, 10:20 AM
Last Post: genny92c
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,568 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  Rename Files based on XML file klturi421 3 2,273 Oct-22-2021, 07:37 PM
Last Post: klturi421

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020