Click here to Skip to main content
16,006,749 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem in updating database Pin
Dave Kreskowiak11-Apr-09 6:56
mveDave Kreskowiak11-Apr-09 6:56 
QuestionHow do I set permissions for delete or move a file from external drive in Vista Pin
x38class10-Apr-09 21:00
x38class10-Apr-09 21:00 
AnswerRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri10-Apr-09 21:22
Anubhava Dimri10-Apr-09 21:22 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class10-Apr-09 23:02
x38class10-Apr-09 23:02 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri10-Apr-09 23:15
Anubhava Dimri10-Apr-09 23:15 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class11-Apr-09 20:37
x38class11-Apr-09 20:37 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri12-Apr-09 18:06
Anubhava Dimri12-Apr-09 18:06 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class13-Apr-09 21:01
x38class13-Apr-09 21:01 
this is the error message

full error text:
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.File.Move(String sourceFileName, String destFileName)
at Test_Ainfo.frmMain.btnMove_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

now, The problem is because I want to delete or move a file from an external drive, ie f or g, or h

I want somebody to tell me one of the following:
1. this is the code you need to add permissions to the drive\folder to do this
2. this is the code you need to get administrator permission
3. this is the code to both the above
4. it can't be done

surely I am not the only one with this problem, but where is the answer?
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
Anubhava Dimri13-Apr-09 21:12
Anubhava Dimri13-Apr-09 21:12 
GeneralRe: How do I set permissions for delete or move a file from external drive in Vista Pin
x38class18-Apr-09 19:10
x38class18-Apr-09 19:10 
QuestionCan you help me code a function procedure in Visual Basic 2008? Pin
Boblc12310-Apr-09 18:36
Boblc12310-Apr-09 18:36 
AnswerRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dave Kreskowiak10-Apr-09 18:49
mveDave Kreskowiak10-Apr-09 18:49 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Boblc12310-Apr-09 18:56
Boblc12310-Apr-09 18:56 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Wes Aday10-Apr-09 19:13
professionalWes Aday10-Apr-09 19:13 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dalek Dave10-Apr-09 19:34
professionalDalek Dave10-Apr-09 19:34 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Wes Aday10-Apr-09 19:44
professionalWes Aday10-Apr-09 19:44 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Eddy Vluggen10-Apr-09 23:40
professionalEddy Vluggen10-Apr-09 23:40 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dave Kreskowiak11-Apr-09 6:44
mveDave Kreskowiak11-Apr-09 6:44 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Boblc12311-Apr-09 7:07
Boblc12311-Apr-09 7:07 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Dave Kreskowiak11-Apr-09 14:33
mveDave Kreskowiak11-Apr-09 14:33 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
Mycroft Holmes11-Apr-09 15:27
professionalMycroft Holmes11-Apr-09 15:27 
GeneralRe: Can you help me code a function procedure in Visual Basic 2008? Pin
0x3c012-Apr-09 7:21
0x3c012-Apr-09 7:21 
QuestionVb.net windows application to web application Pin
nishkarsh_k10-Apr-09 18:17
nishkarsh_k10-Apr-09 18:17 
AnswerRe: Vb.net windows application to web application Pin
Dave Kreskowiak10-Apr-09 18:48
mveDave Kreskowiak10-Apr-09 18:48 
GeneralRe: Vb.net windows application to web application Pin
nishkarsh_k10-Apr-09 20:47
nishkarsh_k10-Apr-09 20:47 

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.