Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to execute dos command in Perl?
Herman
I want to konw how to execute Dos command in perl?
ex xcopy c:\123\*.* c:\test\
any idea?
Find more posts tagged with
Comments
Nicholas
check out the "system" in perl.
jbonifaci
place the command in backticks, i.e. my $fileContent = `more file.txt`;.
~Jeff
Migrateduser
Better yet, crack open a Perl book and you might learn something. I'm betting this won't be your last question about the basics of Perl...
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Migrateduser
OUCH! But I'm glad someone said that!
Environments:
(1,2) TS6.5, TS6.5SP1 on W2K3
(3) Vignette V7 Portal on Solaris 9