VBA: Run a command at the command prompt from VBA

=========
QUESTION
———
How do I run a DOS command at the Command prompt from VBA?

 

=========
ANSWER
———
see EXAMPLES

 

=========
EXAMPLES
———
Shell "cmd.exe /k dir c:windowssystem*.exe", vbNormalFocus

…consider running a .bat file for more involved commands?

 

=========
APPLIES TO / KEY WORDS
———
Microsoft Access
VBA
Command Prompt
Commands

 

=========
REF
———
http://www.vbaexpress.com/kb/getarticle.php?kb_id=971

 


http://www.anysitesupport.com/vba-run-a-command-at-the-command-prompt-from-vba/
http://anySiteHosting.com

By | 2011-12-16T07:54:56+00:00 December 16th, 2011|Access, Computers, Documentation, Microsoft, VBA|0 Comments