L Lee Taylor-Vaughan Apr 20, 2010 #1 How can i delete files in a directory by clicking a command button. i.e. C:\Prog\*.pdf THanks Lee
D Dirk Goldgar Apr 20, 2010 #2 Lee Taylor-Vaughan said: How can i delete files in a directory by clicking a command button. i.e. C:\Prog\*.pdf Click to expand... For example: '----- start of example code ------ Private Sub cmdDeletePDFs_Click() Kill "C:\Prog\*.pdf" End Sub '----- end of example code ------ Of course, you have to have delete permissions on the folder and files.
Lee Taylor-Vaughan said: How can i delete files in a directory by clicking a command button. i.e. C:\Prog\*.pdf Click to expand... For example: '----- start of example code ------ Private Sub cmdDeletePDFs_Click() Kill "C:\Prog\*.pdf" End Sub '----- end of example code ------ Of course, you have to have delete permissions on the folder and files.