You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.0 KiB
Batchfile
58 lines
1.0 KiB
Batchfile
2 years ago
|
|
||
|
@echo off
|
||
|
rem Versionen
|
||
|
rem 1.01 , 03.01.01 -> Hardwareliste erzeugen
|
||
|
|
||
|
setlocal
|
||
|
|
||
|
rem die Variablen %date%,%pd1% sind durch StartBat definiert
|
||
|
|
||
|
if %pd1%=="" goto merr
|
||
|
|
||
|
set t_file=C:\VS_%USERDOMAIN%_%date%.txt
|
||
|
set t_hd_file=C:\VH_%USERDOMAIN%_%date%.txt
|
||
|
|
||
|
set exe=%pd1%\VerInfo
|
||
|
set hd_exe=%pd1%\FWinMsd.exe
|
||
|
|
||
|
if not exist c:\VS_*.txt goto m0
|
||
|
copy c:\VS_*.txt c:\VS_*.old
|
||
|
:m0
|
||
|
|
||
|
if not exist c:\VH_*.txt goto m0a
|
||
|
copy c:\VH_*.txt c:\VH_*.old
|
||
|
:m0a
|
||
|
|
||
|
|
||
|
if exist c:\Computer.txt goto m1
|
||
|
%exe% c:\FockeDCS %t_file%
|
||
|
del %t_hd_file%
|
||
|
goto m2
|
||
|
:m1
|
||
|
copy c:\Computer.txt %t_file%
|
||
|
copy c:\Computer.txt %t_hd_file%
|
||
|
%exe% c:\FockeDCS %t_file% -a
|
||
|
:m2
|
||
|
|
||
|
|
||
|
%exe% c:\FockeTools %t_file% -a
|
||
|
%exe% c:\Visu2000 %t_file% -a
|
||
|
%exe% c:\VisiWin %t_file% -a
|
||
|
%exe% c:\WinNT %t_file% -a
|
||
|
%exe% c:\Windows %t_file% -a
|
||
|
|
||
|
rem Hardware auslesen
|
||
|
%hd_exe% /a /f
|
||
|
type %pd1%\%USERDOMAIN%.txt >> %t_hd_file%
|
||
|
del %pd1%\%USERDOMAIN%.txt
|
||
|
|
||
|
goto ende
|
||
|
:merr
|
||
|
echo .
|
||
|
echo Error
|
||
|
echo This batch file has to be started with StartBat.exe
|
||
|
echo.
|
||
|
|
||
|
|
||
|
:ende
|
||
|
endlocal
|