Help: Executing MS-Dos Prompt command by code


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Help: Executing MS-Dos Prompt command by code

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Posts
    61

    Help: Executing MS-Dos Prompt command by code

    I'm using MS Access, so the clients doesn't has the COM. But i have the files on my server, so what i want to make is, every time the program start it will check does the clients has registered the COM if no errors then continues, else the program will execute the code that execute the string variable:
    "RegSvr32 \\server\****.ocx" to the Command Prompt.

    How can i make code that like executing MS-Dos Prompt. Thanks for any kind of help.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Have you tried the Shell function?
    http://msdn.microsoft.com/library/en...vafctShell.asp
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2004
    Posts
    61
    Do you mean i activate CMD and then use SendKeys method to the CMD apps???

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    No. You can run:

    Shell "RegSvr32 \\server\filename.ocx"

    to register the component from within your app.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Speaking of strings...
    By Harlow in forum .NET
    Replies: 246
    Last Post: 10-26-2002, 12:30 AM
  2. Code security
    By Rob Teixeira in forum .NET
    Replies: 5
    Last Post: 11-27-2001, 06:12 PM
  3. Brain Washing
    By Danny Bowman in forum .NET
    Replies: 152
    Last Post: 09-13-2001, 07:23 AM
  4. Replies: 0
    Last Post: 04-03-2001, 04:32 PM
  5. Replies: 1
    Last Post: 11-20-2000, 10:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center