Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / October 2004

Tip: Looking for answers? Try searching our database.

Run .vbs file from a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iansa - 29 Oct 2004 13:28 GMT
I am trying to run a .vbs file from an access macro using RunApp. Is this
possible?

If not is there an alternative. I'd like to keep it all in access as it is
the last in  several steps in the macro.

Thanks in advance for any help

ian
Douglas J. Steele - 29 Oct 2004 13:33 GMT
You need to call wscript.exe (if it's interactive) or cscript.exe (if you
just want to run it in batch).

In other words, you need

  wscript.exe "C:\My Scripts\testing.vbs"

rather than simply

  "C:\My Scripts\testing.vbs"

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I am trying to run a .vbs file from an access macro using RunApp. Is this
> possible?
[quoted text clipped - 5 lines]
>
> ian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.