Solved

How to run program from autoexec.bat on NT?

Posted on 2000-04-12
10
390 Views
Last Modified: 2013-12-28
I'm writing a VB6 program for Win95/98/NT (I do not have NT on my system) which will ask for a password during boot.  The object being to prevent NT from continuing to load unless the correct password is entered.

With Win95/98 I simply append my exe to the Autoexec.bat file and everything works fine.

WinNT on the other hand ignores exe files in its Autoexec.bat file.

What I need to know is how to accomplish this on WinNT and if possible a clear code example.

Thanks, QS
0
Comment
Question by:QuantumSingularity
[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
10 Comments
 
LVL 3

Expert Comment

by:simonprr
ID: 2708536
Try using this registry file. Use notepad and save it as autoexec.reg for example:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ParseAutoexec"="1"

OR put it in:

c:\winnt\system32\autoexec.nt

Which is similar to autoexec.bat in Win95/98.

OR:

Put it in:

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]

Try them and see which one works for you.

SI
--
0
 

Author Comment

by:QuantumSingularity
ID: 2709171
Edited text of question.
0
 
LVL 3

Expert Comment

by:simonprr
ID: 2709600
Well that isn't what you first asked is it!!!
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 3

Expert Comment

by:simonprr
ID: 2709609
Maybe then this question should be in the programming section....(?)
0
 

Author Comment

by:QuantumSingularity
ID: 2709761
simonprr,

Sorry for being unclear the first time.

As far as section is concerned, your guess is as good as mine.  I'll try programming next if I receive no more responses here.

Thanks for your time, QS
0
 

Accepted Solution

by:
ccheek earned 50 total points
ID: 2710483
Im a bit amussed, NT will NOT allow you in unless you have entered a correct user name/password anyway (client&server)

Or are you wanting to have this program in you autoexec only ???

if so, that would pose a bad security problem...remember the autoexec can be skipped on ALL the systems you listed.

Hmmm...think you should revise the question or drop the project.

0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2711637
Exactly - NT will ask you for a password anyway, so it's 95/98 you should be concentrating on !
0
 
LVL 3

Expert Comment

by:simonprr
ID: 2711835
You could use the AutoLogon tool which comes with the NT Resource Kit, which would AutoLogon a specified user.
0
 
LVL 5

Expert Comment

by:carmine
ID: 2715177
A possible solution would be to rewrite as a device driver/system service.   Though these can write to the 'blue screen' at boot time, I'm not sure they can accept keyboard input.

This app really isn't required on NT, but if you don't even want the machine to boot, set a BIOS boot-up password.

Mark
0
 

Author Comment

by:QuantumSingularity
ID: 2716270
My question asked how to perform a particular task on an OS with which I was unfamiliar.  Among the acceptable answers was that it was a duplication of functionality already present and so unnecessary.  ccheek pointed this out.  Thanks to all for your time and consideration.  QS
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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