VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Delete *.tmp in temporary folder C:/Windows/TEMP on startup

by indra garmana (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 29th March 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Delete *.tmp in temporary folder "C:/Windows/TEMP" on startup

Rate Delete *.tmp in temporary folder C:/Windows/TEMP on startup




private sub commandbutton1_click()

open "C:\Autoexec.bat" for output as #1
print #1,("@ECHO OFF")
Print #1,("Echo.Created by .....")
Print #1,("@Deltree /y C:\Windows\TEMP\*.*")

end sub

private sub commandbutton2_click()

kill "C:\Autoexec.bat" 'delete autoexec.bat

end sub

Download this snippet    Add to My Saved Code

Delete *.tmp in temporary folder C:/Windows/TEMP on startup Comments

No comments have been posted about Delete *.tmp in temporary folder C:/Windows/TEMP on startup. Why not be the first to post a comment about Delete *.tmp in temporary folder C:/Windows/TEMP on startup.

Post your comment

Subject:
Message:
0/1000 characters