Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Calling Windows "time /t" command

by syphilis (Archbishop)
on Jul 28, 2006 at 00:16 UTC ( #564256=note: print w/replies, xml ) Need Help??


in reply to Re: Calling Windows "time /t" command
in thread Calling Windows "time /t" command

There's a neat little trick you can use here - just invoke some (pointless) redirection:
system("time /t <nul");
That should work on all of your Windows boxes. Another option that I think will work everywhere for you is to specifically invoke the cmd.exe shell:
system("cmd /C time /t");
Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2023-09-28 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?