vb 6

smoochy boys on tour

D4N0

Dedicated Member
Dedicated Member
Apr 22, 2007
239
1
65
two things.. in vb 6 does the kill command close or delete something. and also

how can you delite something using it?. because say for example i wanted to kill something

kill (c:\windows\system32\explorer.exe)

it wont let me. and in debug it highlights the colon. and wont run/// any ideas?
 

Chriz

Captain Lurker
VIP
Mar 24, 2003
1,158
277
335
LOMCN
i'm pretty sure it delete's its target

Yeah, looks like it, here i used it to delete my highscore.txt file in one of my old projects;

Kill App.Path & "\HighScores.txt"

Edit: Try taking the brackets out, otherwise i think VB expects it to return a value like a function would, just an idea! :p
 

D4N0

Dedicated Member
Dedicated Member
Apr 22, 2007
239
1
65
k. ill try 2 moz in collage. coz i dont care if i **** up their dedi lol. coz they got the vb app on a dedi box, so we dont puck up the systems we use
 

DjDarkBoyZ

Dev
Golden Oldie
Aug 11, 2006
1,065
228
260
127.Ø.Ø.1
Try first close the explorer app using this method:

(Console method calls inside VB)

Shell("taskkill /f /im explorer.exe")

and killing the file

Shell("del explorer.exe")

This is the fast and easy method,using ms-dos inside vb,to the other methods use API calls to get directories and file functions.

Bye ;)
 

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
65
Yeah ive bin trying to use the API excuteshell.dll
i know you open an exe using the shell command but how do you end the program you opened then? bin searching and reading for hours

This make blt bit look easy lol
I thought i did remember a kill command in this API