As a side note, you can still use forward slash "/" instead of "\" in
Windows. They
are compatible with all internal Windows API. 
Reasons for this is the history prior to MS-DOS being born.

-Robin

> -----Original Message-----
> From: Aaron Craig [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 11:50 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Converting Unix paths to windows
> 
> At 10:22 27.06.2001 -0500, Daryl Hoyt wrote:
> >Hi,
> >     I am writing a script to be used on Windows and many different
> flavors
> >of Unix.  I am looking for a good way to convert Unix paths to Windows.
> Any
> >Ideas?????
> 
> What do you mean exactly.  If you just mean converting "\" to "/"  and 
> getting rid of the drive you can do this:
> 
> my $sPath = "C:\\foo\\bar";
> $sPath =~ s/^[a-z]+://i;
> $sPath =~ s/\\/\//g;
> print $sPath;
> Aaron Craig
> Programming
> iSoftitler.com

Reply via email to