发新话题
打印

[资料] 常见打包下载的mdb文件解包问题,常见格式有*.mdb,*.tdb,*.Xml

本主题由 admin 于 2008-11-25 01:12 设置高亮

常见打包下载的mdb文件解包问题,常见格式有*.mdb,*.tdb,*.Xml

复制内容到剪贴板
代码:
Dim rs, ws, fso, conn, stream, connStr, theFolder

Set rs = Createobject("ADODB.RecordSet")

Set stream = Createobject("ADODB.Stream")

Set conn = Createobject("ADODB.Connection")

Set fso = Createobject("Scripting.FileSystemobject")

c

conn.Open connStr

rs.Open "FileData", conn, 1, 1

stream.Open

stream.Type = 1

On Error Resume Next

Do Until rs.Eof

theFolder = Left(rs("thePath"), InStrRev(rs("thePath"), "\"))

If fso.FolderExists(theFolder) = False Then

  createFolder(theFolder)

End If

stream.SetEos()

stream.Write rs("fileContent")

stream.SaveToFile str & rs("thePath"), 2

rs.MoveNext

Loop

rs.Close

conn.Close

stream.Close

Set ws = Nothing

Set rs = Nothing

Set stream = Nothing

Set conn = Nothing

Wscript.Echo "所有文件释放完毕!"

Sub createFolder(thePath)

Dim i

i = Instr(thePath, "\")

Do While i > 0

  If fso.FolderExists(Left(thePath, i)) = False Then

   fso.CreateFolder(Left(thePath, i - 1))

  End If

  If InStr(Mid(thePath, i + 1), "\") Then

   i = i + Instr(Mid(thePath, i + 1), "\")

   Else

   i = 0

  End If

Loop

End Sub
双击解包!!!!!!
解包工具下载

附件

打包基地老兵专用解压工具.rar (3.1 KB)

2007-10-11 03:53, 下载次数: 6

Image00000.jpg (49.32 KB)

2007-10-11 03:53

Image00000.jpg

Lukin_Pack_Install不用设定打包目录版.rar (5.15 KB)

2007-10-11 03:53, 下载次数: 4

Lukin_Pack_Install需要设定打包目录版.rar (4.95 KB)

2007-10-11 03:53, 下载次数: 2

TOP

谢谢.>!
下载下来,看看..

TOP

感谢老大的贴贴
   冒泡网络,泡打天下   签名出租

TOP

TOP

TOP

发新话题

本站服务器及带宽由 新网合租 Xinnethz.com 提供