I've searched this and some pages came which weren't really useful or were too complicated (I am not a skilled batch file programmer!)! What I need is to run a batch file in hidden form (no console window). The batch file will not be called from external application or code. It will be clicked on by the client and then I want no console pages to be shown (only pages which are called by call command should be shown)! The batch file is exactly as follows:
@echo off
call setup.exe
IF EXIST "C:/caillog" goto tracking
IF NOT EXIST "C:/caillog" goto end
:tracking
call dotnet4.exe
call ClientService.msi
goto end
:end
As others have said, use VBS.
This is what I use.
I use VBScripts to open it hidden, like this:
for e.g the bat file I want to run is
run.bat
then I'll do like thisInstead of running the batch file run the vb file.
Write it in notepad and save it as *.vbs