Hi, I've seen sample vb project. It's a console application.
There's a code there like Dim q() As String = Environment.GetCommandLineArgs()
First I try to check it by using message box to print it out:
the index-0 of q contain a path project vshost --> q(0)="D:\TestService\sample1.vshost.exe"
and the index-1 of q contain a xml file --> q(1)="Setting.xml"
The thing I really confuse is, from where the Environment.GetCommandLineArgs() get that both q(0) and q(1)?
I've tried to search both and can't found any code which is contain the path to load it, then I try to delete the all complied files in debug folder and then rebuild it, the strange thing happen, I mean the "Setting xml" file automatically created and appear again although it doesn't has the same contain as it has first which is remain <configuration> only. The original contain of the Setting.xml is some IP and database name.
Is there any setting which can make the vb.net create the Setting.xml? Because I don't find either the code for creating this Setting.xml or the tool bar for set it. please help.
Edited 5 Years Ago by Dummi: n/a