[OTP] VBA Shell帮助 [英] [OTP] VBA Shell Help

查看:69
本文介绍了[OTP] VBA Shell帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Access程序,我在后台使用VBA代码通过shell命令运行Winunzip.好的.zip文件的路径中有空格,并且不会将路径重新确认为有效路径.

I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path.

除了shell之外,还有其他方法可以解决此问题吗?我也不能pkzip ...

Is there a another way to tackle this problem besides the shell?   I can't us pkzip either...

您可以看到我必须使用progra〜1而不是程序文件

Has you can see I had to use progra~1 instead of Program Files

strZippedMI = Chr(34)& "c:\ progra〜1 \ winzip \ wzunzip -v"& "C:\ Documents and Settings \ msb915 \ Local Settings \ Temp \ MI.ZIP"& Chr(34)

strZippedMI = Chr(34) & "c:\progra~1\winzip\wzunzip -v " & "C:\Documents and Settings\msb915\Local Settings\Temp\MI.ZIP" & Chr(34)

Shell strZippedMI,vbNormalFocus

Shell strZippedMI, vbNormalFocus

推荐答案

这些论坛是针对VB.NET问题的.

Access中的VB是Visual Basic for Application. VBA与VB.NET完全不同,在其他一些地方,您可能会更快,更好地回答您的VBA问题

ou可能会在以下方面找到更多帮助专门处理VBA的开发.

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=74&SiteID=1

或者如果您是从Office应用程序内部使用VBA

办公自动化:office.developer.automation新闻组

http://msdn.microsoft.com/newsgroups/default.aspx?dg = microsoft.public.office.developer.automation& lang = en& cr = US

http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.office.developer.automation&lang=en&cr=US 

或Office Newgroups

http://www.microsoft.com/office/community/en-us/default.mspx?d=1

希望的帮助


这篇关于[OTP] VBA Shell帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆