bat file Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

use minlogon and I have a custom shell.

I writed command in a bat file as driverset.bat
------------------------------------------------------------------------------------
net use U: \\192.168.0.1\c$ password /user:computername\username
net user V: \\192.168.0.1\d$ password /user:computername\username
exi
--------------------------------------------------------------------------------------
I hope when computer start ,it's auto add the network driver, so I add
"C:\windows\system32\driverset.bat "in the register :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
but it execute failed and give me no information.
but when I run this bat file in cmd.exe it execute succeed;

what can I do?
 
YunLee,

Since you are using Minlogon image and custom shell, the Run key may not work (at least on after-FBA image).
In any case, please change the launch command to call something like "\windows\system32\cmd.exe /K <your batch file path>".

Or, better, you can launch the batch file from your own custom shell application with CreateProcess or etc.

KM
 
thanks for your help.
at last I find the workstation service is not run.
then I add "net start workstation" at the top for the bat file.
Problem is gone
 
Back
Top