- 日志
- 好友
- 卖家信用
- 买家信用
- 注册时间
- 2010-11-23
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
x
https://code.google.com/p/xiaoch ... ip&can=2&q=
>>>type unzipvbs.vbs
Call unzip(Wscript.Arguments(0), Wscript.Arguments(1))
Function unzip(fromZipFile, toDestFolder)
Dim Scripting_FileSystemObject
Dim Shell_Application
Set Scripting_FileSystemObject = CreateObject("Scripting.FileSystemObject")
Set Shell_Application = CreateObject("Shell.Application")
If (fromZipFile <> "" And toDestFolder <> "") Then
If Scripting_FileSystemObject.FileExists(fromZipFile) Then
If Scripting_FileSystemObject.FolderExists(toDestFolder) Then
Scripting_FileSystemObject.DeleteFolder (toDestFolder)
End If
Scripting_FileSystemObject.CreateFolder (toDestFolder)
Shell_Application.Namespace(toDestFolder).Copyhere Shell_Application.Namespace(fromZipFile).Items
End If
End If
Set Shell_Application = Nothing
Set Scripting_FileSystemObject = Nothing
End Function
>>>type unzipbat.bat
@echo off
CScript/Nologo .\unzipvbs.vbs %1 %2
>>>type test.bat
@echo off
call .\unzipbat.bat C:\JAVA\unzip\unzip.zip C:\JAVA\unzip\out |
评分
-
查看全部评分
|