Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I need edit code for delete without confirmation?
Shell("cmd.exe /c del C:\Users\cahafi\Desktop\V2-Solution2\WindowsApplication17\WindowsApplication17\bin\x64\Debug\*.*/Y")

thank you

What I have tried:

Shell("cmd.exe /c del C:\Users\cahafi\Desktop\V2-Solution2\WindowsApplication17\WindowsApplication17\bin\x64\Debug\*.*/Y")


Still need confirmation.
Posted
Updated 18-Feb-19 22:15pm
v3
Comments
Richard MacCutchan 19-Feb-19 3:47am    
I do not think deltree exists any more, unless this is something you wrote yourself.
Member 13711215 19-Feb-19 3:52am    
sorry I update it

1 solution

Why are you using Shell to delete files at all? Why not delete them directly from your VB app, where confirmation isn't needed?
Have a look here: How to delete all files and folders in a directory? - Stack Overflow[^] - teh code is C# but it's pretty obvious!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900