Forum Discussion

KenHII's avatar
KenHII
Copper Contributor
Jul 14, 2023

Application Logging Issues

I am trying to find a location to Log a Win32 Batch file Log so that I can see if there are issues with the install. 

 

 

@echo off
SET LOGFILE=C:\log\Program_batch_Log.txt
call :logit >> %LOGFILE% 2>&1

 

 

 

The win 32 app fails to install because it is unable to save the File.   When I run it on my computer as the administer Command Line it runs perfectly no issues. However, when its installing from autopilot, it will not write to the given folder as it doesn't have permissions.

 

Respectfully,

Ken H II

  • Perhaps you could use a PowerShell script for installation and use the Start-Transcript c:\log\program_batch_log.txt at the start of the script and Stop-Transcript at the end of the script

Resources