Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: slowing down the process Pin
Argus225-Nov-06 12:38
Argus225-Nov-06 12:38 
GeneralRe: slowing down the process Pin
Rob Graham25-Nov-06 13:04
Rob Graham25-Nov-06 13:04 
AnswerRe: slowing down the process Pin
Guffa25-Nov-06 13:22
Guffa25-Nov-06 13:22 
AnswerRe: slowing down the process Pin
Martin2326-Nov-06 5:13
Martin2326-Nov-06 5:13 
GeneralRe: slowing down the process Pin
Argus226-Nov-06 13:34
Argus226-Nov-06 13:34 
Questionusing windows service to copy file through network(LAN) Pin
ctlqt1225-Nov-06 11:42
ctlqt1225-Nov-06 11:42 
AnswerRe: using windows service to copy file through network(LAN) Pin
KevinMac25-Nov-06 19:07
KevinMac25-Nov-06 19:07 
GeneralRe: using windows service to copy file through network(LAN) [modified] Pin
ctlqt1226-Nov-06 3:31
ctlqt1226-Nov-06 3:31 
Thanks for your reply.

Yes, i have permission on both computers. I run following code :
<br />
'Domain account<br />
String user = "UserName";<br />
String p = "PassWord";<br />
SecureString pass = new SecureString();<br />
<br />
'Create pass<br />
for(i=0; i< p.Length; i++)<br />
    pass.AppendChar(p[i]);<br />
<br />
'Copy file<br />
Process.start("cmd","/c copy c:\\temp.txt \\\\ServerName\\SharedFolder",user,pass, "DomainName");


That code run well on winform application but when running in windows service, it alerts "Access denies". It means it couldn't find the correct path to SharedFolder when using windows service.

So please tell me what correct path to access that SharedFolder by using Windows Service?





-- modified at 9:57 Sunday 26th November, 2006
GeneralRe: using windows service to copy file through network(LAN) Pin
Weckmann27-Nov-06 4:11
Weckmann27-Nov-06 4:11 
Questionctrl.BackgroundImage vs. clientRectangle in paint event... Pin
new_phoenix25-Nov-06 10:35
new_phoenix25-Nov-06 10:35 
Questionmulti threading Pin
sorayya_sk25-Nov-06 9:56
sorayya_sk25-Nov-06 9:56 
QuestionSelected TreeView Item Pin
Alan Martinis25-Nov-06 9:24
Alan Martinis25-Nov-06 9:24 
AnswerRe: Selected TreeView Item Pin
Rob Graham25-Nov-06 10:47
Rob Graham25-Nov-06 10:47 
AnswerRe: Selected TreeView Item Pin
beatles169225-Nov-06 22:53
beatles169225-Nov-06 22:53 
QuestionSelected TreeView Item [modified] Pin
Alan Martinis25-Nov-06 9:22
Alan Martinis25-Nov-06 9:22 
AnswerRe: Selected TreeView Item Pin
Bassam Saoud25-Nov-06 22:12
Bassam Saoud25-Nov-06 22:12 
GeneralRe: Selected TreeView Item Pin
Alan Martinis26-Nov-06 12:48
Alan Martinis26-Nov-06 12:48 
GeneralRe: Selected TreeView Item Pin
Scott Dorman27-Nov-06 4:51
professionalScott Dorman27-Nov-06 4:51 
AnswerRe: Selected TreeView Item Pin
darkelv26-Nov-06 15:57
darkelv26-Nov-06 15:57 
QuestionAdding new items to TreeView Pin
Mark F.25-Nov-06 8:53
Mark F.25-Nov-06 8:53 
AnswerRe: Adding new items to TreeView Pin
Not Active25-Nov-06 10:28
mentorNot Active25-Nov-06 10:28 
GeneralRe: Adding new items to TreeView Pin
Mark F.25-Nov-06 11:22
Mark F.25-Nov-06 11:22 
GeneralRe: Adding new items to TreeView Pin
Not Active25-Nov-06 14:11
mentorNot Active25-Nov-06 14:11 
QuestioncrystalReport Pin
aPerfectCircle25-Nov-06 8:18
aPerfectCircle25-Nov-06 8:18 
Questionbubble and quick method Pin
sapnju_fejinja25-Nov-06 7:33
sapnju_fejinja25-Nov-06 7:33 

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.