Renaming and adding pre and post fix PDF file name using java or c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • btcman
    New Member
    • Feb 2014
    • 1

    Renaming and adding pre and post fix PDF file name using java or c#

    hi,
    can you please help?

    i have a bunch of pdf files to be renamed after it has been split up. i just want to add a prefix before old file name and post fix after.how can i do this in java or c#?
    please help
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi btcman and welcome to bytes.com!

    So, just to make sure I understand you correctly, if your PDF was called something like "instructions.p df" you want to rename it to "my.instruction s.pdf.stuff"? Or "my.instruction s.stuff.pdf"?

    In any case, if you use Java you'll need File (especially File#renameTo(F ile)) and probably stuff like String#indexOf( String), String.substrin g(int, int) and/or String#replace( CharSequence, CharSequence).

    Comment

    Working...