Click to See Complete Forum and Search --> : HELP!! Getting a handle on a process


Alan
January 29th, 1999, 04:08 AM
Hi,


Can anyone let me know how to get a handle on a process?? I have some VB code, which deletes an old version of a file, but then creates a new file of the same

name. I have to put in a loop to delay the execution of the code, but sometimes the program fails. Any help would be greatly appreciated.


Kill "C:\WINNT\System32\Spool\Drivers\W32x86\2\__pdf.ini"


i = 1


' Delay needed between deleting a file & re-creating the same file.

' This is required as the script returns an error, if the time delay is too

' short between deleting and re-creating


For longWait = 1 To 1000000000

Next longWait


'open the file and write to it as appropriate


Open "C:\WINNT\System32\Spool\Drivers\W32x86\2\__pdf.ini" For Output As i

..

...

....