We help IT Professionals succeed at work.

Executing a vb aplication in a windows 2003 server

aplimedia
aplimedia asked
on
393 Views
Last Modified: 2010-04-07
I have done an aplication in vb6 which check a folder in the server every 10 minutes and if it finds any zip file (these files are sent by a web users) it unzip the files, extract the access databases inside, send the records to a sql server and delete all the files (zip and mdb)
This aplication uses common vb tools as (timers, textboxes, filelistboxes...). I have installed on the server and works fine when i open a remote session.
But if i close the session it does not work. I have included a programmed task which call the aplication when the server is turning on, i can see the aplication is running but id does nothing.
Any solution? Thanks
Comment
Watch Question

Rather than have the program running constantly and checking a folder every 10 minutes, why not have it launched every 10 minutes via scheduled task (this will be a pain to set up, because you'll have to put in a new task for every 10-minutes, since each task can only run once a day).  Scheduled tasks will run on the server even if there is no interactive user.

Commented:
For scheduling software, use dazzling events instead.  it works like windows scheduled tasks but allows the options of scheduling stuff to run once, or every x seconds, minutes, hours, days, weeks, months, or years.
Can you post a URL for "dazzling events" please?

Author

Commented:
Thanks, I will change the code to use Scheduled tasks but my problem is that the aplication does not run on the server if there is no interactive user. I forgot to say I am using a VPN with Windows 2003, virtuozzo software (I donĀ“t know if this changes something)
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Wow, that is great info, justchat_1...  Thank you!

Commented:
http://www.dazzlingsoftware.com/Downloads/DazzlingEvents.htm

^^It makes windows scheduling look like a kids toy.^^
Any luck on the debug?
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Aplimedia--

justchat_1's message 06/27/2006 01:57PM EST offered the task scheduler advanced solution before tguez, to whom you gave the points.

Just wondered if you noticed that.

Jon

Author

Commented:
@Netminder and jmundsack (And justchat_1 )

Having read over the answers once again, in the coolness of day, I do see clearly how justchat_1  did also suggest the task manager soltution. However, in the heat of the moment the solution suggested by tguez seemed better worded and his explain around the issue made the solution work for me. Sorry, i hate it when this happens to me too. I will be more carefull in the furture.

Aplimedia

Author

Commented:
Yes please Netminder... and apologies to everyone.

Aplimedia

Author

Commented:
Many thanks to all.

Aplimedia
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.