Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

VB6 - How to check if Process is running and if not then delete files.

$
0
0
Hi, I am making a program extract the program it executes and when the process ends then delete the extracted files.

To execute.
vb Code:
  1. Shell App.Path & "\filename.dll", vbNormalFocus

To delete.
vb Code:
  1. Kill App.Path & "\filename.dll"

Basically if the process is running then have VB do nothing to the process, but if it is not running then delete the extracted files.

So is there anything to put into Image2_MouseDown that will do this?

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>