Python Forum
How to rename a CSV file by adding MODIFIED in the filename?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to rename a CSV file by adding MODIFIED in the filename?
#10
I am sorry for the confusion, I think my description has not been clear.

I am seeking for a function which checks the current csv file on its filename. This filename should be remembered in the code and after adjustments, the filename should be used with an addition.

For example:
I have a csv file (Book1.csv) which I want to analyse. After the analysis, the file should be saved with an addition 'MODIFIED' behind the current file name. The code should execute something which 'looks' to the current filename and use it with an addition of MODIFIED. --> Book1_MODIFIED.csv

Hopefully this makes some more sense.

Like to hear.
Reply


Messages In This Thread
RE: How to rename a CSV file by adding MODIFIED in the filename? - by Python_User - Dec-01-2020, 07:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rename first row in a CSV file James_S 3 634 Dec-17-2023, 05:20 AM
Last Post: James_S
  PDF properties doesn't show created or modified date Pedroski55 4 1,156 Jun-19-2023, 08:09 AM
Last Post: Pedroski55
  rename file RolanRoll 0 555 May-18-2023, 02:17 PM
Last Post: RolanRoll
  File path by adding various variables Mishal0488 2 1,090 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  '' FTP '' File upload with a specified string and rename midomarc 1 1,210 Apr-17-2023, 03:04 AM
Last Post: bowlofred
  output provide the filename along with the input file processed. arjunaram 1 972 Apr-13-2023, 08:15 PM
Last Post: menator01
  rename same file names in different directories elnk 0 736 Nov-04-2022, 05:23 PM
Last Post: elnk
  rename and add desire "_date" to end of file name before extention RolanRoll 1 1,273 Jun-13-2022, 11:16 AM
Last Post: gruntfutuk
  Rename part of filename in multiple files atomxkai 7 7,463 Feb-18-2022, 10:03 PM
Last Post: atomxkai
  Adding to an XML file TeXaSpEtE83 0 1,291 Dec-22-2021, 08:28 AM
Last Post: TeXaSpEtE83

Forum Jump:

User Panel Messages

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