473,473 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
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
Feb 12 '14 #1
1 1578
Nepomuk
3,112 Recognized Expert Specialist
Hi btcman and welcome to bytes.com!

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

In any case, if you use Java you'll need File (especially File#renameTo(File)) and probably stuff like String#indexOf(String), String.substring(int, int) and/or String#replace(CharSequence, CharSequence).
Feb 14 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the...
1
by: MarkK | last post by:
Hi all I've used Access for years but I'm not a programmer so I need some help... I want to regularly transfer files into a folder but want them to be tagged with the date of transfer (today's...
4
by: gsuns82 | last post by:
hi friends,can any one give the coding for finding file size using java script???
1
by: Sasie7679 | last post by:
Dear All, Is it possible get window handle based on a file name using vb? Regards, Suresh
2
by: ashokformac | last post by:
I am developing a program in java on mac os .. when i try to find filesize it is giving me '0 long' on font file(actual size is some 2000 bytes ) but on other files it is working properly ... ...
6
by: pramod12 | last post by:
Hi i wanted to know if there is a java API for changing file permissions for a file on linux OS
1
by: gan | last post by:
hi dear all please help me someone my problem is i want upload one file if i click the upload button that file should attach another frame and with file size Thanks & rgds Ganesh.R
4
by: BibhuAshish | last post by:
Hi, I wanted to delete a line from xml file which i did it. But after deletion of that line there is a blank space. Again if i am adding another line by using java that blank line remains as...
1
by: ateesh | last post by:
hi every one m new to this java world....and i got task to solve but i don't know how to do that........please anyone help me... i need to access linux machine file system in windows through java...
0
by: raana syeda | last post by:
Please tell me how to get the Windows Xp program file path using java as I am using java1.6.0
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.