Re: [Freedos-user] Doubt on batch stuff
Geraldo Netto [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: (actualy winnt cmd)... Winnt cmd is quite different than freedos command. If you are looking for an efficient winnt cmd solution, you may want to repost your question in news:alt.msdos.batch.nt - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Doubt on batch stuff
Hi Florian, Oh, sure, i knew it, but the problem is that i can not use it on my job, it depends of my boss authorization to use bash or 4dos (...) this is why i asked specifying command.com (actualy winnt cmd)... Regards, Geraldo On 25/04/07, Florian Xaver [EMAIL PROTECTED] wrote: You know, that you can use BASH under DOS? And that with 4DOS a much better UI is available`? Bye Flo On 4/25/07, ice [EMAIL PROTECTED] wrote: On Tue, 24 Apr 2007, Geraldo Netto wrote: and i would like to know how to rewrite it for command, by now i have this: for %%p in ( entries separated by spaces ) do nslookup %%p nslookup_log.txt any idea on how to pass a file as argument? for %host in (host1 host2 host3) do nslookup %host nslookup_log.txt I'm sure it should work with 4dos. -- ice 0x696365*gmail,com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Seids vuasichtig! Und lossts eich nix gfoin! (Ostbahn Kurti) Private Page, oZone GUI http://www.flox.at.tf Club Dr-DOS Wiki http://www.drdos.org Using Arachne, the GPL Web Browser/Suite - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Doubt on batch stuff
Geraldo Netto schreef: for i in $( cat $1 ); do nslookup $i nslookup_log.txt done it catches the content of a file passed($1) and does nslookup for each entry of the file and i would like to know how to rewrite it for command, by now i have this: @echo off for %%p in ( entries separated by spaces ) do nslookup %%p nslookup_log.txt any idea on how to pass a file as argument? @echo off for %%x in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do nslookup %%x nslookup.txt that allows 9 files so far (%1..%9) if 9 isn't enough (note the commandline input limit of 127 chars or so..), make a subroutine in your batchfile and use some kind of dummy argument to jump to that part when the batchfile calls itself (or use goto commands). @echo off if %1== goto help goto begin :begin if %1== goto end nslookup %1 nslookup.txt shift goto begin :help echo Please input a computername, IP or file also like this: %0 [file] {file}. example: %0 192.168.1.1 192.168.1.2 goto end :end Thank you very much, Geraldo Bernd - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Doubt on batch stuff
On Tue, 24 Apr 2007, Geraldo Netto wrote: and i would like to know how to rewrite it for command, by now i have this: for %%p in ( entries separated by spaces ) do nslookup %%p nslookup_log.txt any idea on how to pass a file as argument? for %host in (host1 host2 host3) do nslookup %host nslookup_log.txt I'm sure it should work with 4dos. -- ice 0x696365*gmail,com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user