User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,463 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,576 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

passing parameters in bat file

Join Date: Sep 2006
Posts: 33
Reputation: sendoshin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
sendoshin sendoshin is offline Offline
Light Poster

Solution Re: passing parameters in bat file

  #2  
Sep 30th, 2006
Is the .bat file set up to take the arguments?

Assuming it is, there might be another thing you need to change. You said "abc" and "bcd" are string variables. Using Shell "n:\aa.bat abc bcd" passes the values "abc" and "bcd" to the batch file. Using Shell "n:\aa.bat " & abc & " " & bcd passes the contents of abc and bcd to the batch file instead. You may need to change this in your code.

If neither of these things lead to a fix, then I don't quite understand what's happening. Perhaps you could give us some more information?

Good luck!

- Sendoshin
Reply With Quote  
All times are GMT -4. The time now is 6:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC