hi
i am very new here
i doing a window app using vs2005 to download file using FTP to my c drive
it have no error when i run it in window xp
but when i test it in vista i facing a problem stating access to path "c:\program file\...." is deniel
any work around can be apply to it?
i know if i grant the folder security to everyone then this problem will be solve
but if do so i need to configure it 1 by 1 for every computer
appreciate for any help....

Try running the program as an Administrator

i not sure is it will have any problem if i run as administrator
but for my project i want it to be run for any login user
because some user are restrict to the folder change
and what i want to do here is automatically update the patch everyday

try to change the path, in vista I dont think you can manipulate the program files folder without having administrative rights.

try to change the path, in vista I dont think you can manipulate the program files folder without having administrative rights.

yes, i know if i change the patch to other directory like D or F or put it in desktop will be ok, just wanna know is that any work around to do tis.
its seem like we have no other option to do if v really want to do it on c:\program file?

alonso you should to create another program, try this codes in it, it might work

Dim passy as As New Security.SecureString()
Dim password As String
For Each str As Char In password
passy.AppendChar(str)
Next

Process.Start("C:\Program Files\YOURPROGARM\PROGRAMNAME.exe", "username", passy, Nothing)

alonso you should to create another program, try this codes in it, it might work

Dim passy as As New Security.SecureString()
Dim password As String
For Each str As Char In password
passy.AppendChar(str)
Next

Process.Start("C:\Program Files\YOURPROGARM\PROGRAMNAME.exe", "username", passy, Nothing)

thanks for the reply
this seem like creating another program to call my current program
i will try it and let u know the result
what i trying to find out now is it possible i programingcally run the task as administrator but unfortunately i cant find it
i will try this and let u know the result

alonso you should to create another program, try this codes in it, it might work

Dim passy as As New Security.SecureString()
Dim password As String
For Each str As Char In password
passy.AppendChar(str)
Next

Process.Start("C:\Program Files\YOURPROGARM\PROGRAMNAME.exe", "username", passy, Nothing)

hi, i realise 1 thing
if i using this program to call another program means i need to know the username and password for every user who log in to the computer
if there any way for me to get it?

Process.Start("C:\Program Files\YOURPROGARM\PROGRAMNAME.exe", "username", passy, Nothing)
i think this can be done if i using administrator as username
but the problem is i not able to get the credential or password for administrator
is there any way to get it?

This article has been dead for over six months. Start a new discussion instead.