Skip to content

Commit

Permalink
Update script to copy additional dll's into the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkulagowski committed Mar 24, 2011
1 parent e6fe474 commit a7accbd
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Win32/VS2010/copydll.vbs
Expand Up @@ -4,18 +4,29 @@

option explicit

Dim strStartFolder, strDestinationFolder, objFSO, objFolder, strFilenames, objSubFolder, objSubFile
Dim colFolders, objFile
DIM strStartFolder, strDestinationFolder, strQtFolder, strMySQLFolder, strQtDLL, strMySQLDLL
DIM objFSO, objFolder, strFilenames, objSubFolder, objSubFile, colFolders, objFile

' The folder names. Edit as required for your particular system.
strStartFolder = "thirdparty"
strDestinationFolder = ".\bin\debug\"
strQtFolder = "c:\Qt\4.7.2\bin\"
strMySQLFolder = "c:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\debug\"

strQtDLL = strQtFolder & "\QtSQLd4.dll"
strMySQLDLL = strMySQLFolder & "\libmysql.dll"

Set objFSO = CreateObject("Scripting.FileSystemObject")

' Do the DLLs in thirdparty
Set objFolder = objFSO.GetFolder(strStartFolder)

ScanSubFolders(objFolder)

' Copy the individual DLLs that we also need.
objFSO.CopyFile strQtDLL,(strDestinationFolder)
objFSO.CopyFile strMySQLDLL,(strDestinationFolder)


Sub ScanSubFolders(objFolder)
Set colFolders = objFolder.SubFolders
For Each objSubFolder In colFolders
Expand Down

0 comments on commit a7accbd

Please sign in to comment.