Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-16-2011, 03:03 AM
bolpom bolpom is offline Invoking a command line from inside Word Windows Vista Invoking a command line from inside Word Office 2007
Novice
Invoking a command line from inside Word
 
Join Date: Mar 2011
Location: London, UK.
Posts: 16
bolpom is on a distinguished road
Default A solution

It seems if you write a VB console application which uses "shell" to issue the command, and drag this application into word, the resulting Word object will indeed execute the command.

The only security advantage I can see in this arrangement is based on the rather small additional intelligence which may be needed to use vb rather than straight cmd.exe.

This might discourage a few amateur tinkerers but not any serious criminal virus merchants.

EDIT: Or of course, more directly, put a shape or some text in the word file and provide a vb macro responding to a mouse click by executing the command line as above.
But probably the above way makes it possible to drag or copy and paste the object back into Windows Explorer and use it.

"1. You have a rich abundance of routes and options to choose from.
2. But not all of them work."

Last edited by bolpom; 03-16-2011 at 03:31 AM. Reason: More directly...
Reply With Quote
 

Tags
executables hyperlinks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Argument xJediDadx Outlook 1 02-21-2011 03:47 PM
Command Line Switches Ringmaster Office 0 08-10-2010 06:27 AM
Invoking a command line from inside Word Page break inside tables.(word 2003) englund33 Word Tables 1 06-15-2010 02:00 AM
Shortcut inside Word 2010 or 2007 to format text Ross Word 0 03-03-2010 05:54 PM
Invoking a command line from inside Word Outlook 2003 - IMAP + Exchange. Set Default via Command-Line? Petrucci914 Outlook 1 08-11-2009 07:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft