Batch file rename (based on file content, possibly AI related)


jro11

Well-known member
Member
Local time
8:06 PM
Posts
603
OS
Win11 Home
I have a slew of files CoPilot-generated files relating to questions I posed this AI engine. They are all named:
CopilotAnswers-unique number,docx​
I brought up one of these files in Word and asked Copilot if it could rename the file based on its content. It replied it could do so (even provided example names...not bad, not bad at all). However, I want to do this as a batch process and CoPilot can't open or rename files. I understand there are Python routines and downloadable apps that can do this, as a Batch process.
I'm hoping the file can be renamed based on the content of the file, not just some numbering/date/... scheme independent of the file's content--a process AI seems particularly adept at.
Have you had any experience doing this? What has your experience been? What recommendations do you have?
Thanks
 

My Computers

System One System Two

  • OS
    Win11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inc. Inspiron 16 7610
    CPU
    Dell Inc. 0FHWFD A01
    Motherboard
    Dell Inc. 0FHWFD A01
    Memory
    16GB
    Graphics Card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    laptop (small) and 1 or 2 external monitors
    Screen Resolution
    -
    Hard Drives
    PC711 NVMe SK hynix 1TB 1.02 TB NVMe ANB2N582412102F0G_0001
    PSU
    -
    Case
    Laptop
    Cooling
    fan
    Keyboard
    External!
    Mouse
    External
    Internet Speed
    -
    Browser
    Chrome (Chrome profiles), Firefox (Bookmark Search Plus2), Edge (History page), Opera (annoying)
    Antivirus
    WinDefender
    Other Info
    Win11 Home 23H2 22631.3447
  • Operating System
    Win10
    Computer type
    PC/Desktop
    Manufacturer/Model
    self
    Motherboard
    Gigabyte B75M-D3H
    Memory
    8068 MB Usable Installed Memory
    Graphics card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    3 Displays
    Screen Resolution
    n/a
    Hard Drives
    SSD and others (internal and external)
    Case
    Desktop
    Cooling
    Fan
    Mouse
    External
    Keyboard
    External
    Browser
    Chrome, Firefox, Tor, Brave, Opera, etc.
    Antivirus
    Win Defender
    Other Info
    Win10 & unfortunately OneDrive: Can't completely rid myself of this!!
Do you have some examples of what kind of content you want to identify? If you are going to do this via program, then you need to be able to tell the program something precise to look for in the contents of the file otherwise how will it know what criteria you want to use to perform a certain type of rename?

Of course, if you are talking about something as broad as determining if it is a Word doc, or a spreadsheet, etc. then you could simply look at the file extension. But beyond that, you would simply have to parse the contents of the file and look for something that will tell it what that file is.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
If you are going to do this via program, then you need to be able to tell the program something precise to look for in the contents of the file otherwise how will it know what criteria you want to use to perform a certain type of rename?
AI generated over 90% of each file; when I asked ChatGPT, it looked at the document from which I addressed it (you can open CoPilot within Word) and provided me with a number of possible alternative names; If I bring up CoPilot I see a list of names it's already given to our 'conversations'--so in essence it's already done the hard work.

Figuring out a name is the least I can expect of AI. Where it seems to have a problem is in a) opening a document, and, b) renaming it.
(Instead Copilot (aka Microsoft) picked the most inane way of naming these documents...
But beyond that, you would simply have to parse the contents of the file and look for something that will tell it what that file is.
For 200+ documents?
 

My Computers

System One System Two

  • OS
    Win11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inc. Inspiron 16 7610
    CPU
    Dell Inc. 0FHWFD A01
    Motherboard
    Dell Inc. 0FHWFD A01
    Memory
    16GB
    Graphics Card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    laptop (small) and 1 or 2 external monitors
    Screen Resolution
    -
    Hard Drives
    PC711 NVMe SK hynix 1TB 1.02 TB NVMe ANB2N582412102F0G_0001
    PSU
    -
    Case
    Laptop
    Cooling
    fan
    Keyboard
    External!
    Mouse
    External
    Internet Speed
    -
    Browser
    Chrome (Chrome profiles), Firefox (Bookmark Search Plus2), Edge (History page), Opera (annoying)
    Antivirus
    WinDefender
    Other Info
    Win11 Home 23H2 22631.3447
  • Operating System
    Win10
    Computer type
    PC/Desktop
    Manufacturer/Model
    self
    Motherboard
    Gigabyte B75M-D3H
    Memory
    8068 MB Usable Installed Memory
    Graphics card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    3 Displays
    Screen Resolution
    n/a
    Hard Drives
    SSD and others (internal and external)
    Case
    Desktop
    Cooling
    Fan
    Mouse
    External
    Keyboard
    External
    Browser
    Chrome, Firefox, Tor, Brave, Opera, etc.
    Antivirus
    Win Defender
    Other Info
    Win10 & unfortunately OneDrive: Can't completely rid myself of this!!
AI generated over 90% of each file; when I asked ChatGPT, it looked at the document from which I addressed it (you can open CoPilot within Word) and provided me with a number of possible alternative names; If I bring up CoPilot I see a list of names it's already given to our 'conversations'--so in essence it's already done the hard work.

Figuring out a name is the least I can expect of AI. Where it seems to have a problem is in a) opening a document, and, b) renaming it.
(Instead Copilot (aka Microsoft) picked the most inane way of naming these documents...

For 200+ documents?

Sure, a program could parse thousands or tens of thousands of files rapidly.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I've bulk-renamed files using one of the third-party file managers such as Free Commander, Multi Commander, Total Commander, etc. [many are free] to change file names, mostly to remove extraneous characters with nothing, only take out what is designated. The key was all the files had the same characters where the rest of the file name was different. I put the paid version of Total Commander on my computers plus on USB Thumb drives with other diagnostics. An example is in a list of songs for a single performer whose name was on all the files, removed instances of that name leaving the song title intact [replaced the name with nothing]. I've also use the program to bulk change the Attributes of files such as date of creation.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security

My Computers

System One System Two

  • OS
    Win11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inc. Inspiron 16 7610
    CPU
    Dell Inc. 0FHWFD A01
    Motherboard
    Dell Inc. 0FHWFD A01
    Memory
    16GB
    Graphics Card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    laptop (small) and 1 or 2 external monitors
    Screen Resolution
    -
    Hard Drives
    PC711 NVMe SK hynix 1TB 1.02 TB NVMe ANB2N582412102F0G_0001
    PSU
    -
    Case
    Laptop
    Cooling
    fan
    Keyboard
    External!
    Mouse
    External
    Internet Speed
    -
    Browser
    Chrome (Chrome profiles), Firefox (Bookmark Search Plus2), Edge (History page), Opera (annoying)
    Antivirus
    WinDefender
    Other Info
    Win11 Home 23H2 22631.3447
  • Operating System
    Win10
    Computer type
    PC/Desktop
    Manufacturer/Model
    self
    Motherboard
    Gigabyte B75M-D3H
    Memory
    8068 MB Usable Installed Memory
    Graphics card(s)
    2.30 gigahertz Intel 11th Gen Core i7-11800H
    Sound Card
    Intel® Smart Sound Technology for USB Audio
    Monitor(s) Displays
    3 Displays
    Screen Resolution
    n/a
    Hard Drives
    SSD and others (internal and external)
    Case
    Desktop
    Cooling
    Fan
    Mouse
    External
    Keyboard
    External
    Browser
    Chrome, Firefox, Tor, Brave, Opera, etc.
    Antivirus
    Win Defender
    Other Info
    Win10 & unfortunately OneDrive: Can't completely rid myself of this!!
And the name of that program is???
It is whatever you name it after you write it :-). Seriously, it would be super easy to write in a few minutes once you know what you are specifically looking for.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor

Latest Support Threads

Back
Top Bottom