run a DOS .bat files under an excel macro

B

B.M.Spell

Good Morning
I have created a macro where we can pull data from a central
computer. You login to this computer using a dos .bat file with the contents
listed below:

net use v: /d
net use v: \\CRhe_DK1_L1\alr OpconRead /USER:blush:pconread /persistent:no

How can I run this command under an excel macro? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top