J
JerryBall_800
I am using MS Access and would like to pass an exe name to my code signing cert batch file. Been trying to figure this one out,
but cannot get there. I created a batch file called. SignFile.bat. It contains everything I need to sign the file, but I need to pass the exe name to the file. The exe name has spaces and is supposed to be enclosed in double quotes "Test File Sign.exe" and I thins this is causing me the issue.
The SignFile.bat is as follows:
The SignFile.bat is as follows and is located in C:\Cloud Data\Devl\:
Where "%1" should be the file name with the double quotes.
Signtool sign /f “C:\Cloud Data\Code_Signing_Cert\
if errorlevel 1 goto error
goto end
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%
:end
==============================
it should end up being "Dealer 1 Acura_ISS.exe"
1. SignPath is where the batch file
SignPath = CurrentProject.Path & "\SignFiles.bat"
2. SignName is where the exe file is located
SignName = CurrentProject.Path & "\" & rstDelFldr!DlrName & "_ISS\" & rstDelFldr!DlrName & "_ISS.exe"
SignStr = SignPath + " " + SignName
Call Shell("cmd.exe" & SignStr, 1)
============================
I only need to figure out how to pass the SignName into the batch file
==============================
Error Message:
Continue reading...
but cannot get there. I created a batch file called. SignFile.bat. It contains everything I need to sign the file, but I need to pass the exe name to the file. The exe name has spaces and is supposed to be enclosed in double quotes "Test File Sign.exe" and I thins this is causing me the issue.
The SignFile.bat is as follows:
The SignFile.bat is as follows and is located in C:\Cloud Data\Devl\:
Where "%1" should be the file name with the double quotes.
Signtool sign /f “C:\Cloud Data\Code_Signing_Cert\
if errorlevel 1 goto error
goto end
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%
:end
==============================
it should end up being "Dealer 1 Acura_ISS.exe"
1. SignPath is where the batch file
SignPath = CurrentProject.Path & "\SignFiles.bat"
2. SignName is where the exe file is located
SignName = CurrentProject.Path & "\" & rstDelFldr!DlrName & "_ISS\" & rstDelFldr!DlrName & "_ISS.exe"
SignStr = SignPath + " " + SignName
Call Shell("cmd.exe" & SignStr, 1)
============================
I only need to figure out how to pass the SignName into the batch file
==============================
Error Message:
Continue reading...