Answer» Hi,
i need to unregister a lot of dlls that are inside a specific folder. I know that regsvr32 can do this... but just one by one. So i'm wondering if it is possible to create a batch file that can give me all the file NAMES so i can unregister with regsvr32.
Any ideia?! Tkx to all help
This little snippet illustrates one way to do this. Fix up the file names as necessary.
Code: [Select] dir /b path\*.DLL > dir.txt for /f "delims= " %%a in (path\dir.txt) do (regsvr32 -U %%a) del dir.txt
Hope this helps. Helped a lot Thank You!
Can you explain me what is that STUFF of "delims= "? No problem. delims= is used to list the character delimiters of the incoming data. In this case a space. Generally it's used in conjunction with the tokens= parameter which allocates the number of variables available to the FOR.
Clear as mud, right?
For the Microsoft explanation, type for /? at any command prompt.By the way...
It's possible to run this batch file remotely? I can ACCESS the file and run it on other machine... but i want to run on that particular machine accessing by other one.
Confused?
I live my life in state of confusion. Of course I'm confused
You will have to write a Windows Script using the Controller object.
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_immo.mspx
Good luck.
|