H
Hetal
I have created a batch file that unregisters the old version of a dll,
copies the new version, and registers a new version of that dll on a
computer. The script works perfectly fine, but i would like to log the
output of this batch file to a text file.
I tried using the ">" redirector to create a file and the following
lines, i used ">>" redirector to append that file but the output from
regsvr32 does not log to the text file.
The bacth file that i created looks like this:
===============
@ECHO OFF
regsvr32 -u -s %windir%\System32\test.dll > C:\Test.txt
COPY \\server\sharedfolder\test.dll %windir%\System32\ >> C:\Test.txt
regsvr32 -s %windir%\System32\test.dll >> C:\Test.txt
===============
But the log file generated by this batch file only states:
===============
1 File(s) copied.
===============
Is there a way i can redirect the result of regsvr32 command to the
text file?
Thanks!!
copies the new version, and registers a new version of that dll on a
computer. The script works perfectly fine, but i would like to log the
output of this batch file to a text file.
I tried using the ">" redirector to create a file and the following
lines, i used ">>" redirector to append that file but the output from
regsvr32 does not log to the text file.
The bacth file that i created looks like this:
===============
@ECHO OFF
regsvr32 -u -s %windir%\System32\test.dll > C:\Test.txt
COPY \\server\sharedfolder\test.dll %windir%\System32\ >> C:\Test.txt
regsvr32 -s %windir%\System32\test.dll >> C:\Test.txt
===============
But the log file generated by this batch file only states:
===============
1 File(s) copied.
===============
Is there a way i can redirect the result of regsvr32 command to the
text file?
Thanks!!