BAT in start session

I have a BAT file when a user starts a session in a windows2000 or XP.

The problem is that, on login process appears a minimized windows of DOS making de BAT steps.

It's possible to hide thi minimized window?
informatica-csjAsked:
Who is Participating?
 
jdeclueConnect With a Mentor Commented:
How are you starting the batch file. Is this a login script (set in the user account)... or is it through AD group policy? If it is either of these then you would have to use a cmd or bat file to kick off the vbscript, defeating the purpose.

J
0
 
tanelornCommented:
not really,  all you can do is minimize it.

what I would do is convert it into a vb script,  when the vbscript runs, you can configure if it will be visible or not...

is it a big long bat file,  or simple..  

Tanelorn
0
 
BigC666Commented:
howdy,

you can at the start of you bat use @echo off

hope that this helps
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
jdeclueCommented:
If you put the script into a Group Policy you can set them to run invisible.

User Configuration|ADministrative Templates|System|Scripts|Run Logon Scripts Visible is the policy.

If the Logon script is called from the GPO (Active Directory) as a CMD file and this setting is set to Disabled, it should hide the logon script.

Let me know if you need help with this.

J


0
 
informatica-csjAuthor Commented:
how I can do this in vb script

if %username% == "PEPE" net use X: \\server\folder /yes

?????
0
 
jdeclueCommented:
Could you please give us an update as to the question, and/or close it please. Thank You ;)

J
0
All Courses

From novice to tech pro — start learning today.