Well if it was unix and for some reason there where two possibilies for the same 
command I'd use the entire path

$date = `/usr/bin/date +%Y`;

For windows not sure how that would work, maybe

$date = `c:\path/to/cmd.exe date`;

Perhaps, though like I said I'm not sure, I really hate windows and aviod it every 
chance I can :) .


Dan
-----Original Message-----
From: HENRY,MARK (HP-Roseville,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 12:21 PM
To: '[EMAIL PROTECTED]'
Subject: forcing use of shell command over external cmd


Hi All,

On windows, I have a script which calls gets the date from the system date command 
(using backticks) , or rather I would prefer it to.

I have just installed mks toolkit on this machine which has it's own date command, and 
now this is the command getting chosen each time.

How can I get it to use cmd.exe's date command, or more generally force use of the 
system shell's commands over an external program?  

Many thanks,

Mark

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to