Click here to Skip to main content
15,914,221 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to call a Console Exe in vb.net Pin
svanwass18-Oct-07 8:53
svanwass18-Oct-07 8:53 
GeneralRe: How to call a Console Exe in vb.net Pin
Vimalsoft(Pty) Ltd18-Oct-07 20:01
professionalVimalsoft(Pty) Ltd18-Oct-07 20:01 
QuestionAccess to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 2:54
Rupesh Kumar Swami18-Oct-07 2:54 
AnswerRe: Access to Path is denied Pin
Paul Conrad18-Oct-07 3:38
professionalPaul Conrad18-Oct-07 3:38 
GeneralRe: Access to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 5:31
Rupesh Kumar Swami18-Oct-07 5:31 
AnswerRe: Access to Path is denied Pin
Luc Pattyn18-Oct-07 4:33
sitebuilderLuc Pattyn18-Oct-07 4:33 
GeneralRe: Access to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 5:46
Rupesh Kumar Swami18-Oct-07 5:46 
GeneralRe: Access to Path is denied Pin
Luc Pattyn18-Oct-07 6:38
sitebuilderLuc Pattyn18-Oct-07 6:38 
So I guess your app just created this/these file(s) and now wants to delete them?
This is my standard answer for renaming/deleting new files:

if you want write or delete access (anything other than read access) to a file
that just got created (by yourself or someone else, does not matter),
chances are you will find the file is being accessed by some other process,
and your access is not granted.

The other process very likely is some server code that is there to assist you
somehow. Candidates are:
- anti-virus software (Norton, McAfee, whatever)
- indexing software (Google Desktop, MS Office, whatever)
The common thing is these packages are looking all the time for new files, so
they can inspect them.

Microsoft is aware of the consequences; Windows Explorer will try rename and
delete attempts up to five times (with one-second interval), and only reports
failure if the action continues to fail for that time.

The solution:
1. either use a different file name
2. or remove all background reader candidates (bad idea)
3. or implement the retry loop as Explorer has it (use a Windows.Forms.Timer
for this)


Hope this helps.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


Questiondownloading a file from another system which is connected through LAN Pin
Sunil Wise18-Oct-07 1:03
professionalSunil Wise18-Oct-07 1:03 
AnswerRe: downloading a file from another system which is connected through LAN Pin
DigiOz Multimedia18-Oct-07 5:46
DigiOz Multimedia18-Oct-07 5:46 
GeneralRe: downloading a file from another system which is connected through LAN Pin
Koltz18-Oct-07 23:07
Koltz18-Oct-07 23:07 
QuestionMake Blank a datatime type column in DataGridView control Pin
SekharOne18-Oct-07 0:20
SekharOne18-Oct-07 0:20 
Question[VB2005] Transfer Data via NetBIOS with access credentials Pin
morenz18-Oct-07 0:05
morenz18-Oct-07 0:05 
QuestionVB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer17-Oct-07 22:37
Polyprogrammer17-Oct-07 22:37 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
The ANZAC18-Oct-07 2:09
The ANZAC18-Oct-07 2:09 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:55
Polyprogrammer22-Oct-07 4:55 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Dave Kreskowiak18-Oct-07 2:16
mveDave Kreskowiak18-Oct-07 2:16 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:18
Polyprogrammer22-Oct-07 4:18 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Dave Kreskowiak22-Oct-07 12:05
mveDave Kreskowiak22-Oct-07 12:05 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer23-Oct-07 3:13
Polyprogrammer23-Oct-07 3:13 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Colin Angus Mackay18-Oct-07 4:28
Colin Angus Mackay18-Oct-07 4:28 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:06
Polyprogrammer22-Oct-07 4:06 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Colin Angus Mackay22-Oct-07 7:56
Colin Angus Mackay22-Oct-07 7:56 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer23-Oct-07 3:29
Polyprogrammer23-Oct-07 3:29 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Colin Angus Mackay23-Oct-07 6:37
Colin Angus Mackay23-Oct-07 6:37 

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.