batch into script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mike Brearley (mike_brearleyNOSPAM_at_DONTDOIThotmail.com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 13:48:35 -0400

How can I convert this section of a batch file into vbscript so I can add it
to my new login script?

.......
:AUDIT
if exist "C:\aida_scan.txt" GOTO MS823980PATCH

echo.
echo Running a background Hardware/Software Audit.
\\%File_Server%\Data\Support\aida32\aida32.exe /R .\AuditData\$hostname.csv
/NAS /AUDIT /SILENT
echo yes >>"C:\aida_scan.txt"

:MS823980PATCH
.......

-- 
Posted 'as is'.  If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.
Mike Brearley


Relevant Pages

  • Windows XP login script problems with using If Exists
    ... We've come across a problem with XP machines running a login script, ... Problem is we have a audit server which when turned on will audit the ...
    (microsoft.public.windows.server.scripting)
  • Re: 32 Bit Scanner has stopped working
    ... and we use a program called "Audit Wizard" to audit our assets. ... Wizard also uses their own version of scan32.exe in a login script and ... If you drill way down in the error logs you will see that it is a ...
    (microsoft.public.windows.vista.general)
  • get PC Info
    ... What I am trying to do is audit a PC and get the some info and was wondering ... found in the Dos command. ... files on a pc using vbscript and write the output to a file. ... any and all help in this matter is greatly appreciated. ...
    (microsoft.public.scripting.vbscript)