I tried both of your replies and both give me: C:\Temp\Office2013Bundle\FsPlugin.dll 21 File(s) copied x was unexpected at this time.
[cid:[email protected]] [cid:[email protected]] ________________________________ John Marcum MCITP, MCTS, MCSA Desktop Architect Bradley Arant Boult Cummings LLP ________________________________ [H_Logo] From: [email protected] [mailto:[email protected]] On Behalf Of Joe Pochedley Sent: Friday, October 9, 2015 6:34 AM To: [email protected] Subject: [scripting] RE: Register Dll's from bat file I agree, sometimes it's easier to split to multiple lines instead of trying to deal with quote hell... Also, sometimes instead of CD, I like to use pudhd and popd to make it easier to change directories and then return to the starting working directory after a command completes. Like this: pushd "C:\Program Files (x86)\Open Text\DM Extensions" for %x (*.dll) do regsvr32 /s %x popd (pushd also works with UNC paths, which makes working with files in network locations easier, IMHO...) HTH Joe Pochedley Network & Telecommunications Manager Fives North American Combustion, Inc. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Kennedy, Jim Sent: Thursday, October 8, 2015 4:01 PM To: Scripting List ([email protected]<mailto:[email protected]>) <[email protected]<mailto:[email protected]>> Subject: [scripting] RE: Register Dll's from bat file I would multi line it, to avoid the inevitable quote struggle. Second line may need some work. CD "C:\Program Files (x86)\Open Text\DM Extensions" for %x (*.dll) do regsvr32 /s %x From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Marcum, John Sent: Thursday, October 8, 2015 3:52 PM To: Scripting List ([email protected]<mailto:[email protected]>) <[email protected]<mailto:[email protected]>> Subject: [scripting] Register Dll's from bat file How do I register all the dll's in a given path from a batch file? The catch is the path has spaces in it. Every combination of this I've tried fails.: for %x in "C:\Program Files (x86)\Open Text\DM Extensions"(*.dll) do regsvr32 /s %x ________________________________ John Marcum MCITP, MCTS, MCSA Desktop Architect Bradley Arant Boult Cummings LLP ________________________________ [H_Logo] ________________________________ Confidentiality Notice: This e-mail is from a law firm and may be protected by the attorney-client or work product privileges. If you have received this message in error, please notify the sender by replying to this e-mail and then delete it from your computer.
