Batch commands

  • Thread starter Thread starter neil@dms
  • Start date Start date
N

neil@dms

Hi,

I am looking to update the logon script that we use to run a fil
(.exe) from the server when our users login (Microsofts SP3 for Window
XP).

I am not to wise in the art of batch commands to do this so I wa
hoping there was someone out there who could help me??

Cheers

Nei


-
neil@dm
 
neil@dms said:
Hi,

I am looking to update the logon script that we use to run a file
(.exe) from the server when our users login (Microsofts SP3 for Windows
XP).

I am not to wise in the art of batch commands to do this so I was
hoping there was someone out there who could help me??

Cheers

Neil

A good starting point would be to show us what you have,
and to tell us precisely what you wish to achieve.
 
Its pretty much like any kind of DOS batch script (there are a few
exceptions, of course, as well as some proprietary commands). Usually, you
just put the command path for the program in the script, and it runs when
the script is executed. Take a look at this script that I use regularly as
an example of the different things you can do.

net use y: \\students\students /persistent:yes
net use x: \\students\applications /persistent:yes
net use t: \\share1\testout /persistent:yes

rem sets auto update and other cleanup registry updates
if exist c:\winnt\6.reg goto auskip
copy z:\administration\6.reg c:\winnt\6.reg
regedit -s c:\winnt\6.reg
:auskip

rem cleanup of "temp" and "documents and settings"
rem if %computername% == HARDWARE goto skip
rem if %computername% == LC2-003B goto skip
rem DEL /F /S /Q "C:\Documents and Settings"
rem :skip
DEL /F /S /Q %TEMP%

rem install norton antivirus
if not exist "C:\program files\navnt\rtvscan.exe" @call
\\students\VPHOME\clt-inst\WIN32\SETUP.EXE

rem runs welchia fix
@call z:\administration\fixwelch.exe /s

rem runs regclean
@call z:\administration\regclean.exe /s

rem runs ad-aware
@call z:\administration\ad-aware.lnk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top