Hello. I need to write a small program that will run without a form. It will run when called and kill itself after. Does anybody know what would be the best way to accomplish this?
Thanks in advance!
Michelle
Printable View
Hello. I need to write a small program that will run without a form. It will run when called and kill itself after. Does anybody know what would be the best way to accomplish this?
Thanks in advance!
Michelle
Do you want to completely get rid of the form or do you just want to hide it for the users?
In any case, you could to create a module and have Sub Main() as your startup.
What is this program's purpose if I might ask?
The only purpose of this program is to delete zip files out of a specific folder.
Which method would you recommend?
Open a new project, get rid of the form...
create a new bas file an type:
Go to the properties of your project and set "startup object" to Sub main...Code:
Sub Main()
'Do what you want to do here
End
End Sub
That's it
In your Sub Main(), you would write KILL MyFile.zip.