This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes path conversion window to linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "path conversion window to linux" Watch "path conversion window to linux" New topic

path conversion window to linux

arjun rampal
Ranch Hand

Joined: Jul 08, 2005
Posts: 125
Hi I have file which contains the path name of file like this
file.path=D:\\Data where data is any folder

Now application is going to be instaalled on red hat linux

Now the same file I need to be in
/home/webadrep/Data where again data is folder

now the question is a)what should i write for file.path now.
thanxs and regards
Scott Cook

Joined: Aug 01, 2006
Posts: 14

unix filepaths start at "/" as the root directory, instead of the
drive name ("D:").
arjun rampal
Ranch Hand

Joined: Jul 08, 2005
Posts: 125
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: path conversion window to linux
It's not a secret anymore!