In our office we are using Linux thin client machines, they work very well except the lack of IE, which is a pain because the corporations we deal with are too stupid to update their web apps (no flame wars please).
To solve this problem we have machine in our computer room which users remote desktop into to access internet explorer, this is achieved by running a batch script which opens IE and when it closes logs them off, this setup works well for us.
Even though I have @echo off
and the cmd window isn't displaying anything, I would really like that batch file to be executed silently, so the cmd window doesn't appear at all.
Is this possible?
The Ubuntu terminal server client has an option to launch a file / app at login, is there a command I can use to run this batch silently.
I have tried these:
C:\my_batch.bat /NOCONSOLE
C:\my_batch.bat /NOWINDOW
C:\my_batch.bat /B
C:\my_batch.bat /Q
...with no success, perhaps it's the way I am doing it?
Cheers :-)
Edit
The remote desktop platform is a Windows XP machine, nothing entirely special but not a Windows Server setup.
Perhaps try
the /b parameter is used to
Instead of using a batch file, why don't you create a Group Policy that forces the user shell to be Internet Explorer. This should achieve the behavior you want without any scripts at all.
user configuration -> administrative templates-> system -> custom user interface
Another alternative would be create a vbscript and use that via thw windows scripting host instead of a batch file. Scripts launched with wscript will not spawn a new window. What is your batch file doing? It should be easy enough to simply convert it WSH.
If you don't mind the batch file executing whenever any user logs on (i.e. via terminal services or locally), then:
The script should run silently without showing a command prompt window.
If you don't want it to run when a user logs on locally, it is probably possible to detect this in your batch file and silently abort the script.
You can't run a batch script hidden if run it like this. But it's possible with a little VBS.
Just execute the VBS file and it will run the Script hidden
See this msdn article: http://msdn.microsoft.com/en-us/library/d5fk67ky%28VS.85%29.aspx
The remote desktop application is in fact using said batch file as an alternate shell, and I don't think parameters can be passed using this method.
Therefore I will have to live with my console window.