Ok, recap
Bat script that I want to convert to the "AHK" file + hide the notification window during compression...
(.bat script is working)
Code: Select all
cd ./7zip
7za -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\[%DATE:~3,2%.%DATE:~6,2%.%DATE:~9,4%]-[%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%] Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -x@"..\exceptions.conf" -r
paths:
"C:\Users\Windows\Desktop\TESTSCRIPT"
"C:\Users\Windows\Desktop\TESTSCRIPT\7zip" = "cd ./7zip"
"C:\Users\Windows\Desktop\TESTSCRIPT\A"
"C:\Users\Windows\Desktop\TESTSCRIPT\B"
Abridged versions for testing (.bat script is working)
Code: Select all
start /d "C:\Users\Windows\Desktop\TESTSCRIPT\7zip\" 7za -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
(AHK script is working)
Code: Select all
run, %COMSPEC% /c start /d "C:\Users\Windows\Desktop\TESTSCRIPT\7zip\" 7za -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
(AHK script is working)
Code: Select all
var =
(%
start /d "C:\Users\Windows\Desktop\TESTSCRIPT\7zip\" 7za -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
)
Run, %COMSPEC% /c %var%
tmplinshi: (
AHK-1 script is not working)
Code: Select all
var =
(%
"C:\Users\Windows\Desktop\TESTSCRIPT\7zip\7za.exe" -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
)
Run, %COMSPEC% /c %var%,, Hide
tmplinshi: (
AHK-2 script is not working)
Code: Select all
var =
(%
cmd /c "C:\Users\Windows\Desktop\TESTSCRIPT\7zip\7za.exe" -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
)
Run, %var%,, Hide
-----------------------------------
This version looks like the best solution for me (Unfortunately, hiding does not work)
Code: Select all
var =
(%
start /d "C:\Users\Windows\Desktop\TESTSCRIPT\7zip\" 7za -t7z a "C:\Users\Windows\Desktop\TESTSCRIPT\B\Backup.7z" -mx=9 -ssw "C:\Users\Windows\Desktop\TESTSCRIPT\A\*" -r
)
Run, %COMSPEC% /c %var%,, Hide
If I'm right and "
,, Hide" it is only functional within a command line (7za.exe It is a standalone program) and command "
Hide" will not affect
Any other ideas?