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:
- Output w/ date/time variables? Norris Carden (Apr 08)
- RE: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Ron (Apr 08)
- Re: Output w/ date/time variables? Kris Katterjohn (Apr 08)
- Re: Output w/ date/time variables? Ron (Apr 08)
- Re: Output w/ date/time variables? Fyodor (Apr 08)
- Re: Output w/ date/time variables? Kris Katterjohn (Apr 08)
- Re: Output w/ date/time variables? jah (Apr 08)
- Re: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Brandon Enright (Apr 08)
- Re: Output w/ date/time variables? DePriest, Jason R. (Apr 08)
- RE: Output w/ date/time variables? Norris Carden (Apr 08)
- Re: Output w/ date/time variables? Norris Carden (Apr 08)