Is there a way through code to delete a file? and if it deletes it will it send it to the rBin or will it just totaly disappeer. If it goes to the rBin is there a way to delete it from the rBin? Thanks
Printable View
Is there a way through code to delete a file? and if it deletes it will it send it to the rBin or will it just totaly disappeer. If it goes to the rBin is there a way to delete it from the rBin? Thanks
use Kill strFileName where strFileName is the full path and filename of the file you want to delete
hey that isn't working agh why? i put this
Kill "C:\WINDOWS\Profiles\Chris\Desktop\Visual Basic\Programs\Vocab Builder\Vocab Lists\Bryan.ini"
and it didn't work why? thanks!!
oh and umm that is the correct path. it said compile error:
Wrong number of arguments or invalid property assignment
------------------
Sincerely,
Chris
:-) ;-)
Email [email protected]Quote:
just have fun out there and live life to the fullest while it is still here
[This message has been edited by PITBULLCJR (edited 02-04-2000).]
netsurfer you out there please help or anyone else I would aprecitate it!! thanks!!
------------------
Sincerely,
Chris
:-) ;-)
Email [email protected]Quote:
just have fun out there and live life to the fullest while it is still here
netSurfer gave you the correct syntax, try it on a file in the root of the C Drive, just to test it, there's no reason why it shouldn't work, ie.
Kill "C:\TheFile.txt"
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]