Calling Batch File from VB
-
Hi Friends, I am calling one batch file from vb program like the below code. Dim d As Double d = Shell("\\sys1\share1\overtime log\Overtime Log\Ext.bat", vbHide) the above 2 lines are given in form_load event. share1 is the shared folder in the server sys1. When I try to run this application which is having the above two lines to call the batch file from the Server : sys1 it is working fine and calling the batch file. But when i create package and deployement of this application, and installed in other system and when i try to run the project, it gives error Runtime Error: Call to invalid procedure or argument But the i am not getting the above error if i give the ipaddress of sys1 instead of giving the system name like sys1. Please suggest me some ideas for this. Since my ip address is dynamic, i cannot give that address, so i can only give my sys name ....So Expecting your help. Thanks in Advance, Regards
-
Hi Friends, I am calling one batch file from vb program like the below code. Dim d As Double d = Shell("\\sys1\share1\overtime log\Overtime Log\Ext.bat", vbHide) the above 2 lines are given in form_load event. share1 is the shared folder in the server sys1. When I try to run this application which is having the above two lines to call the batch file from the Server : sys1 it is working fine and calling the batch file. But when i create package and deployement of this application, and installed in other system and when i try to run the project, it gives error Runtime Error: Call to invalid procedure or argument But the i am not getting the above error if i give the ipaddress of sys1 instead of giving the system name like sys1. Please suggest me some ideas for this. Since my ip address is dynamic, i cannot give that address, so i can only give my sys name ....So Expecting your help. Thanks in Advance, Regards
Your IP address on the network is dynamic ? Perhaps this is not the best way to do this ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Your IP address on the network is dynamic ? Perhaps this is not the best way to do this ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )