Need a regex or some other method to convert UNIX path to DOS path.
I have
C:/My Document/Photo.gif
Need
C:\My Document\Photo.gif
#!/usr/bin/perl
use strict; use warnings;
use File::Spec::Win32;
print File::Spec::Win32->canonpath('C:/My Document/Photo.gif'), "\n";
This is the regular expression
s/\//\\/g
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With