Write to a Directory as a Specific User on a Different Domain
问题 I am wondering, how would one write a file (say for instance, from a Console Application in a scheduled task) to another computer on a different domain? How would one set the Username and Password, such as with the "Log on to..." dialog to authenticate? Couple of prerequisites exist, obviously: The machines can see each other across the domains, however they need to authenticate You know the login details The username you would log in with has the appropriate permissions to write Anyone have