Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by syphilis (Archbishop)
on Jul 28, 2006 at 00:16 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found