PDF的VBS小程序代碼
更新時間:2008年08月17日 12:09:13 作者:
PDF的VBS小程序,看上去應(yīng)該是處理pdf文件的
Dim ls_File
Set objArgs = WScript.Arguments '命令行參數(shù)
if objArgs.Count<1 then
return
end if
ls_File = objArgs(0) '第一個參數(shù)通常就是文件名
ls_new = left(ls_File, len(ls_File) -4 )+".pdf"
Set pptApp = CreateObject("PowerPoint.Application") '申明調(diào)用函數(shù)
pptApp.Visible = True '在使用PowerPoint時,一定要有此句,否則會出錯
Set MyPress = pptApp.Presentations.Open( ls_file) 'Presentation 對象
MyPress.Saveas ls_new,32
pptApp.Quit
Set objArgs = WScript.Arguments '命令行參數(shù)
if objArgs.Count<1 then
return
end if
ls_File = objArgs(0) '第一個參數(shù)通常就是文件名
ls_new = left(ls_File, len(ls_File) -4 )+".pdf"
Set pptApp = CreateObject("PowerPoint.Application") '申明調(diào)用函數(shù)
pptApp.Visible = True '在使用PowerPoint時,一定要有此句,否則會出錯
Set MyPress = pptApp.Presentations.Open( ls_file) 'Presentation 對象
MyPress.Saveas ls_new,32
pptApp.Quit
相關(guān)文章
VBS中轉(zhuǎn)換二進制數(shù)據(jù)為字符串常用辦法
VBS中轉(zhuǎn)換二進制數(shù)據(jù)為字符串常用辦法...2007-03-03