Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

linking directroies btw windows and unix

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> linking directroies btw windows and unix Page: [1]
Login
Message << Older Topic   Newer Topic >>
linking directroies btw windows and unix - Dec. 13, '02, 2:34:49 PM   
turtle_wi

 

Posts: 1
Joined: Dec. 13, '02,
Status: offline
Is there a way when in a windows application to use the unix directory path structure.

I know you can link a unix path to a windows directory with the ln command.

But I have code which is maintained both on UNIX & W2K and currently uses the UNIX directory path structure. I would rather keep it one way to avoid problems going forward from switching back and forth.

Thanks.
Post #: 1
RE: linking directroies btw windows and unix - Dec. 13, '02, 2:54:19 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
If you are using Interix (from SFU 3.0), which is a Unix environment, on W2K then pathnames and everything else happens just the same way as on other Unix boxes.

If you are making a Win32 binary then it' s going to depend on what sort of paths you have. References to " /etc" will just not work the same way (Windows uses a multi-rooted FS).

The other thing is that with ' ln' hard links are hard links. It' s at the file system level and both Win32 and Interix use this well. With ln and soft links Interix will treat them correctly and Win32 won' t know what to do with them (for a local disk, an NFS mount is different).

For this application have you conditionalised the code to do output (for example) one way with Unix and a different way with Win32?

If you use Interix you can get the code down to a single source base that is portable enough to build the same on all Unix platforms (including Interix on W2K) and behave the same on all.

- Rodney

(in reply to turtle_wi)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> linking directroies btw windows and unix Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031