DavidBrent
Technical User
sorry if this is in the wonrg place!!?
Dear all,
i'm very new to batch files. I currently have to come in at the weekend and test machines after they have been moved. I log on as admin and have to use a tiny program which resets the users winlogon:
editbox "User ID" "Please enter the user's ID"
regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultUserName %result%
regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultDomainName EUR
GOTO EOF
:EOF
i would like to know how to run the program and then for the paste funtion to automatically insert the users logon that i have 'copied' before logging on as an administrator.
i hope this makes sense!?
i have this in my bat file so far...
start l:\ecr_temp\UsernameReset.wbt
which i have tested and it starts up the right thing, but then would like an automatic 'paste' to be actioned into that box, is this possible?
many thanks in advanced.
Ricky
Dear all,
i'm very new to batch files. I currently have to come in at the weekend and test machines after they have been moved. I log on as admin and have to use a tiny program which resets the users winlogon:
editbox "User ID" "Please enter the user's ID"
regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultUserName %result%
regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultDomainName EUR
GOTO EOF
:EOF
i would like to know how to run the program and then for the paste funtion to automatically insert the users logon that i have 'copied' before logging on as an administrator.
i hope this makes sense!?
i have this in my bat file so far...
start l:\ecr_temp\UsernameReset.wbt
which i have tested and it starts up the right thing, but then would like an automatic 'paste' to be actioned into that box, is this possible?
many thanks in advanced.
Ricky