Nmap Development mailing list archives

Re: Output w/ date/time variables?


From: "DePriest, Jason R." <jrdepriest () gmail com>
Date: Thu, 8 Apr 2010 13:57:19 -0500

Norris, my batch/cmd scripting is terribly rusty however doesn't %val
have special meaning in batch scripts?  Have you tried anything like
%%D%%T?  A quick perusal of Google results suggest that ^ might be the
escape char.

If you are stuck on Windows you should think about using PowerShell for
your scripting needs rather than cmd scripts.

Brandon

This is truth.  '%' is the variable name indicator for a batch file on Windows.

You will need to double it to keep it from being interpreted as such.

%%D%%T should work.

-Jason
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: