Teaser Posted September 14, 2010 Posted September 14, 2010 Hi All, I have a requirement of running the dos command line below in VBA. Any help with the code/syntax will be much appreciated. c:\> eRaiseFlag.exe /FlagName:CreateFolder Thanks TS
Teaser Posted September 14, 2010 Author Posted September 14, 2010 Please note running the cmd directly works fine.
maniac Posted September 14, 2010 Posted September 14, 2010 (edited) Edit, ignore that - you said VBA not VBS. Edited September 14, 2010 by maniac Read the question properly.
dwhyte85 Posted September 14, 2010 Posted September 14, 2010 (edited) strDOSCMD = "cmd.exe /c ..." sCmdLine = strDOSCMD 'SEND TO DOS dblRetVal = Shell(sCmdLine, vbHide) Send Dos Commands (post 3) Edited September 14, 2010 by dwhyte85
Teaser Posted September 15, 2010 Author Posted September 15, 2010 thanks dwhyte85.. i'll give this a go
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now