Click here to Skip to main content
15,927,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDelete files and folders Pin
HPBlade8-Sep-04 19:08
HPBlade8-Sep-04 19:08 
GeneralRe: Delete files and folders Pin
Dave Kreskowiak9-Sep-04 10:47
mveDave Kreskowiak9-Sep-04 10:47 
GeneralRe: Delete files and folders Pin
TT(n)12-Sep-04 1:14
TT(n)12-Sep-04 1:14 
GeneralRe: Delete files and folders [EDITED] Pin
Dave Kreskowiak12-Sep-04 3:26
mveDave Kreskowiak12-Sep-04 3:26 
GeneralRe: Delete files and folders [EDITED] Pin
TT(n)12-Sep-04 8:27
TT(n)12-Sep-04 8:27 
GeneralRe: Delete files and folders ] Pin
TT(n)12-Sep-04 12:01
TT(n)12-Sep-04 12:01 
GeneralRe: Delete files and folders [EDITED] Pin
Dave Kreskowiak12-Sep-04 16:32
mveDave Kreskowiak12-Sep-04 16:32 
GeneralRe: Delete files and folders [EDITED] Pin
TT(n)13-Sep-04 1:41
TT(n)13-Sep-04 1:41 
Backpedal, you said it is required to do it your way, and that you can't just go in and delete the files/folders.


If the API's were smaller, why not post it with a few lines?
API's are flawed too, it is big business to get cookies etc on your machine.
You have a point, sendkeys can be funky but within the correct parameters works just fine. Besides the person asking the question sounds pretty green.


'Here is another approach that works better, than a simple sendkeys.
'Set your timer to 500, or 1000 and set txtTime.text = 5.

Private Sub Command1_Click()
txtTime.Text = 0
End Sub

Private Sub Timer1_Timer()
Dim time As Integer
On Error Resume Next
time = txtTime.Text
txtTime.Text = txtTime.Text + 1
End Sub

Private Sub txtTime_Change()
Dim ProcessId As Integer
On Error Resume Next
If txtTime.Text = 1 Then
ProcessId = Shell("Explorer c:\Documents and Settings\DivinePrime.HAL\Local Settings\Temporary Internet Files", vbMaximizedFocus)
AppActivate ProcessId
End If

If txtTime.Text = 2 Then
AppActivate ProcessId
SendKeys "%(e+a){delete}"
End If

If txtTime.Text = 3 Then
SendKeys "%(y)"
End If

If txtTime.Text = 4 Then
AppActivate ProcessId
SendKeys "%(f+c)"
End If
End Sub


GeneralRe: Delete files and folders [EDITED] Pin
Dave Kreskowiak13-Sep-04 12:16
mveDave Kreskowiak13-Sep-04 12:16 
GeneralRe: Delete files and folders [EDITED] Pin
TT(n)13-Sep-04 19:34
TT(n)13-Sep-04 19:34 
GeneralRe: Delete files and folders [EDITED] Pin
Dave Kreskowiak14-Sep-04 1:42
mveDave Kreskowiak14-Sep-04 1:42 
GeneralRe: Delete files and folders [EDITED] Pin
Anonymous14-Sep-04 17:29
Anonymous14-Sep-04 17:29 
Questionhow to add chm help file into vb.net project. Pin
rajad8-Sep-04 18:04
rajad8-Sep-04 18:04 
AnswerRe: how to add chm help file into vb.net project. Pin
Dave Kreskowiak9-Sep-04 10:52
mveDave Kreskowiak9-Sep-04 10:52 
GeneralRe: how to add chm help file into vb.net project. Pin
rajad9-Sep-04 15:46
rajad9-Sep-04 15:46 
GeneralRe: how to add chm help file into vb.net project. Pin
Dave Kreskowiak10-Sep-04 1:13
mveDave Kreskowiak10-Sep-04 1:13 
GeneralRe: how to add chm help file into vb.net project. Pin
rajad10-Sep-04 17:33
rajad10-Sep-04 17:33 
GeneralGood tool for developer! Pin
tianzj8-Sep-04 17:30
tianzj8-Sep-04 17:30 
GeneralAdvertisment... Pin
Dave Kreskowiak9-Sep-04 10:53
mveDave Kreskowiak9-Sep-04 10:53 
QuestionHow to find CRLF in RichTextBox Pin
bitpusher8-Sep-04 15:24
bitpusher8-Sep-04 15:24 
AnswerRe: How to find CRLF in RichTextBox Pin
Anonymous8-Sep-04 18:14
Anonymous8-Sep-04 18:14 
AnswerRe: How to find CRLF in RichTextBox Pin
pbpb10-Sep-04 3:23
pbpb10-Sep-04 3:23 
QuestionHow can I get the number of rows in the data grid Pin
Waleed Eissa8-Sep-04 11:58
Waleed Eissa8-Sep-04 11:58 
AnswerRe: How can I get the number of rows in the data grid Pin
Nick Seng8-Sep-04 15:28
Nick Seng8-Sep-04 15:28 
GeneralReference Outlook open email window in VB.NET Pin
Vyyk8-Sep-04 11:54
sussVyyk8-Sep-04 11:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.