Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu and Win7 on dual boot. On windows, a use a program that is set to save things on a given windows folder (like "D:\some folder"). On ubuntu, I can run this exact same program (it's not a linux version of the program, it's really the same program located on my windows partition that I can run from ubuntu).

My problem is that when I run it on ubuntu, the program can't save things because it's set to save on "D:\some folder", which ubuntu doesn't recognize as a valid path. This folder's path on ubuntu is "/media/D/some folder"

Is there a way to make ubuntu understand "D:\some folder" as a synonym/alias of "/media/D/some folder" so that when I use this program on ubuntu it's able to save things in the same folder as it does when run on windows? It's really bothersome to have to change the path every time I run this program on the other OS.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

It's not possible to get Ubuntu to understand Windows File Paths. You can however install Wine and run the program in Wine to get Windows File Paths. Wine is a sort of a Windows Translation Layer to Run Windows Programs in a Unix environment(translating Windows-based requests into something Unix can understand). Whether this works depends on the program you're trying to run.

http://www.winehq.org/

share|improve this answer
    
I think the OP is already using Wine - it is impossible to run native Windows executables on Linux directly. –  Sergey Dec 3 '12 at 21:25
    
Yeah I was confused about that too. But if he was then he should be getting Windows Paths in the program. I'm thinking the Program is either Java or Python. –  japzone Dec 3 '12 at 23:24
    
Furthermore the path in wine will not be the same as in windows. On my system z: in equivalent to / in linux. So d: would still be z:\media\drive_label –  To Do Dec 4 '12 at 0:01
    
@ToDo You're right, but you can use Symbolic Links and tweaks in the "Drives" tab to get the paths to match up. I've done similar things before. –  japzone Dec 4 '12 at 2:14
    
@jap, I'm very sorry for not telling the program I'm using. Since I'm new to linux I did it on purpose to get a more generic answer, so that the knowledge may also be useful in the future if I run on similar situations. I often see questions that are so specific that are rarely useful. And it worked! Now I know of Wine and Symbolic Links! As for the program, it's actually a firefox extension. I'm sharing the same profile under both OSs and some extensions are set to save things with win-style paths, so i can't use them on ubuntu unless I change the path every time. –  Graubis Dec 4 '12 at 8:40
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.