473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Retaining local file system access while impersonating to access a remote drive

Is it possible to retain local file system read, write, delete access while
impersonating for access to a remote drive in a different domain? I need to
be able to move files from a local computer to a remote computer. do i have
to copy them from the local computer to the remote computer then delete them
fromt the local computer after undo-ing the impersonation? Or is there a way
to retain access to both the local computer and the remote computer by while
impersonating the use that has access to the remote computer? The File.Move
requires read and write access to both the filesystem of the source and the
destination because it deletes the file from the source when it is copied to
the destination. My current solution is to impersonate, copy local to
target, undo impersonation, delete locals. But i would like to be able to
impesonate, move local to target, undo impersonation.

Jul 21 '05 #1
0 1193

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Daniel | last post by:
If i log into my computer as domain A and user X and password Y but then I need to give C# application access to domain B as user F and password G. Is this possible? or do i have to log into the...
3
by: Daniel | last post by:
Is it possible to retain local file system read, write, delete access while impersonating for access to a remote drive in a different domain? I need to be able to move files from a local computer...
5
by: cwbp15 | last post by:
Using Visual Studio C# When I ran the following code: System.IO; private void Button1_Click(object sender, System.EventArgs e) { //FileStream fs = File.Create(Server.MapPath("test.txt"));...
3
by: Chris Dunaway | last post by:
Can a Windows service write to a file on the local file system? I was using the Enterprise Library to log to a file and also to the application log. The entries to the application log work...
5
by: Stefan Nuxoll | last post by:
I am working on a player application for my podcast, currently all it does is make a Windows Media Player control open the MP3 file you select from a listbox populated by the RSS feed. I am trying...
5
by: acord | last post by:
Hi, Can anyone tell me how to use XMLHTTPRequest or MS ActivcXObject open a local file? Thanks Sam
2
by: Gerhard | last post by:
I have a .net application that I want to run in a DMZ, with the SQL Server and file system behind another firewall. Is there a secure way to get to files from my application, or would it be better...
4
by: CodeLeon | last post by:
I read in the...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
9
by: jma | last post by:
Hi all, my application produces a log file in XML and I want my users to be able to see this log file nicely formatted through either IE or FF, but there is only client side code (no web...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.