Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Checking for a Task on windows?

Hi Nook
There may be a solution using API functions.
Do a Google search for API Functions.

HTH
Cordially
Pascal


"NooK " a écrit dans le message de
...
I am having a small problem, I run a program (By running VBA's "Shell"
cmd) and this program will create a file so I wait for the file
creation on excel so I can continue working on it.

Now the problem is that there is no telling how long the file will take
to be created therefore it makes it hard to set a TimeOut on the
program so that after a certain time if no file found stop execution.

What I wondered is, since the "Shell" cmd returns the Task ID, is there
any function that I can search if a process is running (By the Task
ID)? Or something similar? This way as soon as the task is not running
anymore I can continue the program and if no file was found after that
I can stop the program without the user having to wait too long or the
program stopping in the middle of the task execution.

Best Regards

NooK


---
Message posted from http://www.ExcelForum.com/



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Checking for a Task on windows?

Nook
In addition have a look at
www.allapi.net

HTH
Cordially
Pascal

"papou" a écrit dans le message de
...
Hi Nook
There may be a solution using API functions.
Do a Google search for API Functions.

HTH
Cordially
Pascal


"NooK " a écrit dans le message de
...
I am having a small problem, I run a program (By running VBA's "Shell"
cmd) and this program will create a file so I wait for the file
creation on excel so I can continue working on it.

Now the problem is that there is no telling how long the file will take
to be created therefore it makes it hard to set a TimeOut on the
program so that after a certain time if no file found stop execution.

What I wondered is, since the "Shell" cmd returns the Task ID, is there
any function that I can search if a process is running (By the Task
ID)? Or something similar? This way as soon as the task is not running
anymore I can continue the program and if no file was found after that
I can stop the program without the user having to wait too long or the
program stopping in the middle of the task execution.

Best Regards

NooK


---
Message posted from http://www.ExcelForum.com/





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows in task bar in MS EXCEL 2007 Subramanya New Users to Excel 1 January 26th 10 05:41 PM
Windows in Task bar in 2007 Amit Kumar Baidyaka Excel Discussion (Misc queries) 1 April 3rd 09 06:14 PM
Problem with Windows in Task Bar command Jim Excel Discussion (Misc queries) 1 March 10th 06 06:13 PM
I check "windows in task bar", after restarting, it is no longer c excelsolutionsyorkshire Excel Discussion (Misc queries) 2 September 21st 05 07:31 PM
Excel Remains Active in Windows Task Manager Philip Wybo Excel Programming 2 August 27th 03 09:30 AM


All times are GMT +1. The time now is 04:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"