Search found 16 matches

by firebloodphoenix
08 Jun 2012 00:19
Forum: DOS Batch Forum
Topic: findstr and extracting specific data
Replies: 1
Views: 2857

Re: findstr and extracting specific data

Code: Select all

for /f "tokens=3* delims=: " %%a in ('reg Query "HKLM\SOFTWARE\something\something" /v "findsomething" ^| findstr /i /c:"findsomething"') do set findsomething=%%a
echo found something : %findsomething%
by firebloodphoenix
06 Jun 2012 11:33
Forum: DOS Batch Forum
Topic: WMIC Print Show Error
Replies: 0
Views: 8418

WMIC Print Show Error

I went to robvanderwoude.com and got his WMIC print.bat @ECHO OFF :: Check Windows version IF NOT "%OS%"=="Windows_NT" GOTO Syntax SETLOCAL ENABLEDELAYEDEXPANSION :: Check number of command line arguments IF "%~1"=="" GOTO Syntax IF NOT "%~4"=="...
by firebloodphoenix
18 Jan 2012 23:55
Forum: DOS Batch Forum
Topic: Brute Force KeyGen
Replies: 2
Views: 4337

Re: Brute Force KeyGen

Thank you! since its only a 5 letter key it should not be a problem
by firebloodphoenix
18 Jan 2012 12:33
Forum: DOS Batch Forum
Topic: Brute Force KeyGen
Replies: 2
Views: 4337

Brute Force KeyGen

I want to make a simple key gen with alphabetic and numeric keys
here is what i have:

Code: Select all

@echo off
set num=0
:loop
set /a num = %num% + 1
echo %num%
goto loop
by firebloodphoenix
04 Jan 2012 20:15
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Re: Display a SecurityCenter status overview

Thanks i read your link that is where i got the API idea from: michu wrote: Here is the response of MS: Read­ing directly from root­se­cu­ri­ty­cen­ter and rootsecuritycenter2 are not doc­u­mented or sup­ported inter­faces. As such, any­one who takes a depen­dency on them does so at their own risk. ...
by firebloodphoenix
04 Jan 2012 17:41
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Re: Display a SecurityCenter status overview

@aGerman

I think i found a other way
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
But i have no idea how to implement it in batch (or even if its possible)
Do you know of a way?
by firebloodphoenix
03 Jan 2012 16:35
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Re: Display a SecurityCenter status overview

I came up with this:

Code: Select all

WMIC.EXE /Node:"%userdomain%" /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName^ /Format:List


it seems to do the trick
change AntiVirusProduct with FirewallProduct or AntispywareProduct(if installed)
by firebloodphoenix
02 Jan 2012 17:56
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Re: Display a SecurityCenter status overview

@ Squashman All i want to know is if there is a antivirus installed The name of the AV could be useful I just thought that windows Action center might know this. So is there a .vbs or .bat that can do this cus i can only find a script for XP I don't want specific information about a specific AV rate...
by firebloodphoenix
02 Jan 2012 17:10
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Re: Display a SecurityCenter status overview

The output is not correct: AntiVirus: ========== Company Name : Display Name : On Access Scanning : Disabled Product Up-to-date : No Version Number : Firewall: ========= Company Name : Display Name : Enabled : No Version Number : Windows Update: =============== Last Reboot : ~0,1-4-, :: it dose not ...
by firebloodphoenix
02 Jan 2012 16:52
Forum: DOS Batch Forum
Topic: Erase SET /P Prompt after execution
Replies: 9
Views: 14734

Re: Erase SET /P Prompt after execution

is this what you need? @echo off :1 echo 1 SET /P C=[1,2,3]? for %%? in (1) do if /I "%C%"=="%%?" goto 1 for %%? in (2) do if /I "%C%"=="%%?" goto 2 for %%? in (3) do if /I "%C%"=="%%?" goto 3 echo Incorect Selection goto 1 :2 echo 2 SET /P...
by firebloodphoenix
02 Jan 2012 15:59
Forum: DOS Batch Forum
Topic: Display a SecurityCenter status overview
Replies: 10
Views: 14730

Display a SecurityCenter status overview

i had to dust of my account here,since its bin a wile since my last visit
i found this http://www.robvanderwoude.com/files/secstat_xp.txt
Is there something like it for windows 7?

i want to integrate it into my project
http://reboot.pro/files/file/118-infohack/
by firebloodphoenix
17 Jul 2010 02:36
Forum: DOS Batch Forum
Topic: Compare a list of strings to find the biggest nummber
Replies: 4
Views: 6434

Re: Compare a list of strings to find the biggest nummber

I like your kung-foo,thanks a lot it works like a bomb!
i had to add a few more "if" lines at the bottom to get the drive specified for update but thanks again!!!
by firebloodphoenix
16 Jul 2010 06:45
Forum: DOS Batch Forum
Topic: Compare a list of strings to find the biggest nummber
Replies: 4
Views: 6434

Re: Compare a list of strings to find the biggest nummber

ok here is the relevant part of the code: @Echo off :start set drive=c :repeat set CHECK=no set %drive%ver=0 set %drive%date=none dir %drive%:\ 2>&1|findstr /b /i /r /c:" Volume in drive ">nul IF "%errorlevel%"=="1" (goto driverror) if exist %drive%:\nodv4_upd\updat...
by firebloodphoenix
16 Jul 2010 03:43
Forum: DOS Batch Forum
Topic: holding the prompt until the exe is finished
Replies: 5
Views: 7623

Re: holding the prompt until the exe is finished

sorry i dont know vb only .bat and .com coding the nircmd is a exe that allows you to do additional coding in your cmd(.bat/.com) files just by typing nircmd(your .bat file has to be in the same folder as the nircmd.exe) and then your command eg: nircmd waitprocess RunSpybot.exe you can run a host o...
by firebloodphoenix
16 Jul 2010 03:20
Forum: DOS Batch Forum
Topic: holding the prompt until the exe is finished
Replies: 5
Views: 7623

Re: holding the prompt until the exe is finished

first download a file called Nircmd http://www.nirsoft.net/utils/nircmd.html in my code you will see me waiting for the exe and then starting it up after the exe is closed and it also hids my cmd box if the title of the box was SpyBot_Loader nircmd exec show "%systemdrive%\spybot\RunSpybot.exe&...