that only takes 2 lines :)))
C:\>set f=myfile_%date:~10,4%-%date:~4,2%-%date:~7,2% C:\>echo %f% myfile_2006-07-19
seriously though.
my 2¢
On Jul 19, 2006, at 12:21 PM, Jared Still wrote:
I would be very surprised if such a site/tool existed.
Any shell script of moderate complexity would be very difficult to translate to windows batch scripting via automated facility.
What can be done with 1 or 2 lines in shell often takes many lines of code in windows.
eg. A one liner in shell. Get a filename with a date stamp. jkstill-0 > f='myfile_'$(date +%Y-%m-%d) jkstill-0 > echo $f myfile_2006-07-19
Doing this in Windows requires several lines of vbscript and temporary files.
If you really need to run the shell scripts in Windows, consider using Cygwin.
Or just rewrite them.
On 7/19/06, Joe Smith <joe_dba@xxxxxxxxxxx> wrote:
Does anybody know of a site that is good for translating unix shell scripts
into Windows batch files? I have two rman scripts that I want to run on a
windows server.
thanks.
_________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
-- //www.freelists.org/webpage/oracle-l
-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist