Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: how to dir a directory that have space

by Anonymous Monk
on Jan 16, 2015 at 04:23 UTC ( [id://1113432]=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to dir a directory that have space
in thread how to dir a directory that have space

Capture::Tiny, Config#sh

$ perl -V:sh sh='cmd /x /c';

#!/usr/bin/perl -- use strict; use warnings; use Capture::Tiny qw/ capture /; my @cmd = ( ## C:\WINDOWS\system32\cmd.exe qw( cmd.exe /x /c dir /b /s /o:-d ), "an y dir ect o ry" ); my($stdout, $stderr, $exit) = capture { system { $cmd[0] } @cmd; };;
system_detached/Win32::ShellQuote

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found