I have lots of dlls present inside a folder . I want to register all those dlls in a single shot by running one batch file , So that i dont have to register each and every dll one by one . Please help me in generating a batch file for it .
Thanks in advance .
Okay, this should work:
Code:
Pretty much
for /r
performs a recursive search through the current dir (and sub-dirs).Type
for /?
for more info or ask if you want further explanation.Explanation:
In the above code all commands used followed by and explanation is below:
Echo
- Displays a message on the screen.@echo
- TurnsEcho
to either on or off. Turning it off will suppress the console from displaying the prompt. That is, the user will not see what commands the batch file is executing, only what you tell the batch file toEcho
and the output of any other commands used.pushd
- Changes the current directory command prompt searches in to the path specified (and stores the previous direcotry for convienience)popd
- Goes to the last directory in (in relation topushd
)for /r
- Executes the commands specified for each file in the current and sub directory's where the variable created (in this example%%a
) is the name of the fileReg
- used to registerRem
- Remarks in a batch file : These lines are comments that are ignoredPause
- Waits for user inputExit
- ExitsExample: