Python Forum
Need help with file renaming
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with file renaming
#1
Hi all,

I need help and I don't know to do this. Here is what I need to do.

I have a file that I need to :
a. copy
b. rename it from a list

All the copies need to be the same but only the name will change. I have over 300 entries in the list. The file is a config for a ipphone, so the name will be in the form of a mac address.

Thanks for any ideas
Reply
#2
What have you tried? Please post your code in Python tags, and tell us exactly how it isn't working correctly.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
I am only starting this and I have not tried anything yet. I know next to nothing about python.
Reply
#4
Look into the os module, it has tools that should do what you need.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information automatic document renaming lisa_d 2 357 Mar-20-2024, 06:34 PM
Last Post: Pedroski55
  renaming the 0 column in a dataframe Led_Zeppelin 5 1,563 Aug-16-2022, 04:07 PM
Last Post: deanhystad
  Functions to consider for file renaming and moving around directories cubangt 2 1,770 Jan-07-2022, 02:16 PM
Last Post: cubangt
  Python with win32com and EXIF renaming files. Amrcodes 4 3,696 Apr-03-2021, 08:51 PM
Last Post: DeaD_EyE
  copying an Excelsheet with its conent and renaming into different names deheugden 6 3,243 Jun-05-2020, 03:20 PM
Last Post: deheugden
  renaming the file in a suitable format, I just wondering if it is possible go127a 11 5,178 Jun-26-2019, 06:15 AM
Last Post: snippsat
  Renaming explorer files in order? stroudie2 2 2,893 Mar-03-2019, 12:41 AM
Last Post: stroudie2
  script for renaming batch of files rado_789 5 3,338 Nov-07-2018, 02:18 PM
Last Post: rado_789
  Renaming PDF files using Excel data - Python okanaira 4 6,958 Mar-20-2018, 07:31 PM
Last Post: okanaira

Forum Jump:

User Panel Messages

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