Solved

BAT in start session

Posted on 2004-08-12
6
624 Views
Last Modified: 2010-04-14
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?
0
Comment
Question by:informatica-csj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:tanelorn
ID: 11786009
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
 
LVL 9

Expert Comment

by:BigC666
ID: 11786490
howdy,

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

hope that this helps
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11786494
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
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

Author Comment

by:informatica-csj
ID: 11790711
how I can do this in vb script

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

?????
0
 
LVL 9

Accepted Solution

by:
jdeclue earned 50 total points
ID: 11793485
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
 
LVL 9

Expert Comment

by:jdeclue
ID: 11911848
Could you please give us an update as to the question, and/or close it please. Thank You ;)

J
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 2000 Kerberos problem 5 356
Migrate DFS role 3 866
Change port for terminal servers (2000 and 2003) 3 176
Migrating from IIS5 to IIS8.5 3 187
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question