Search results for query: *

  1. M

    close the console window

    I know where the exe is - the whole reason I started this thread was because when I double clicked the exe a console popped up, executed the code, sent a bunch of e-mails and then just sat there. I was hoping it would close itself after finishing. So let me start again because I am not...
  2. M

    close the console window

    if you look at my code there is a sub-routine at the bottom that creates and sends the mail. I pass it the subject text and the body text as arguments: Sub SendEmail(ByVal subject As String, ByVal body As String) Try Dim insMail As New MailMessage With insMail .From =...
  3. M

    close the console window

    well, the body and subject of the e-mail are created by the code, and the To and From e-mail addresses will probably just be hard-coded into the module (as they are now). if a console is not the way to go what are my options for creating a stand alone .exe? thanks for your time
  4. M

    close the console window

    Basically I want to create an executable that can be run by a nightly process. I went with a console window because I thought it could be called by a batch file, do its thing, and then go away. By winform do you mean a form with a button on it? I originally made one of those to test the code but...
  5. M

    close the console window

    what I do to execute the program is double-click the executable... here is my code: Imports ESRI.ArcGIS.DataSourcesFile Imports ESRI.ArcGIS.Geodatabase Imports ESRI.ArcGIS.Carto Imports System.Web.Mail Module Module1 Sub Main() Dim layers(6, 4) AsString ' Atlas Layer layers(0, 0) =...
  6. M

    close the console window

    just sits there thanks for the reply but now the console just sits there... and if I try to manually close it I get a message from windows saying that I shouldn't close it b/c a process may still be running... any thoughts?
  7. M

    close the console window

    Hi, I'm trying to figure out how to get the console window to close itself after the code has been executed. My Sub Main() ends with: Console.ReadLine() which I seem to need in order to close the window manually without getting a message from windows saying that I can't close it down...
Back
Top