A regular expression or some other method is required to convert a UNIX path to a DOS path.
I have
C:/My Document/Photo.gif
Need
C:\My Document\Photo.gif
This is a regular expression
s/\//\\/g
#!/usr/bin/perl use strict; use warnings; use File::Spec::Win32; print File::Spec::Win32->canonpath('C:/My Document/Photo.gif'), "\n";
-, , - cmd.exe; API Windows ( cmd.exe , ).
cmd.exe
, :
my $file = "C:/My Documents/Photo.gif"; $file =~ s{/}{\\}g; print "$file\n";
/ \. , Windows.
/
\
, tr :
tr!\\!/!;
Source: https://habr.com/ru/post/1781561/More articles:How does Mono WinForms determine the size of a system font? - monoAssociating patterns with g ++ - c ++unique id value in html - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1781559/what-happens-to-orphanedkilled-async-ajax-webmethod-or-pagemethod-calls&usg=ALkJrhggB9H6rV3WMAwr2gxL1fjzYU1OuwHow to get a resource in another bank - javaStrobe output to Pointgrey Firefly MV using libdc1394 - c ++How to calculate the contact area of one rectangular cuboid with its adjacent cuboids - javaUnzip the zip file in your BlackBerry Java application - javaКак запустить пакетный файл на удаленном компьютере с помощью ANT? - antHow to use Python to send email through Microsoft Exchange web services API - pythonAll Articles