Link to home
Start Free TrialLog in
Avatar of psokolo
psokolo

asked on

How to write a batch to register DLLs

I need to write the following logic into batch file that would be run when user logs on
If PathExists("C:\MyApplication") then
  net use I: "Data_SERV\Data"
  regsvr32 -s "I:\MIS\Source Codes\DLL\clsLend.dll"
  regsvr32 -s "I:\MIS\Source Codes\DLL\clsLendSrv.dll"
end if

The inside of if statement is already correct just the folder exists check and if statement syntax I dont know.

ASKER CERTIFIED SOLUTION
Avatar of SteveGTR
SteveGTR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial