Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

security - web service - vb.net - Help....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
arth - 04 Dec 2005 17:45 GMT
Hi,

I have set up a web service which instantiates a class in a vb.net dll.

One of the things the class is required to do is copy a network folder.  The
destination might be the same or a different server.

I have tried using Shell(<command string> etc) and
System.Diagnostics.Process.Start(<command string>) to run the command to
accomplish this. Both ways do not error but no folder/files get copied.

If I type the command in a command window it executes successfully - folder
created and files copied. An example of the command I am using is:

"xcopy \\servername1\share$\foldername1\foldername2\thisfolder
\\server2\share2$\foldername3\foldername4\thisfolder /E /K /R /O /H /I /Y"

The .asmx page is set for anonymous access and to use the same account that
I am logged on as when the command works from a command window.  Web.config
is also set up with <Identity impersonate=true />.  The identity used is a
Domain Admin.

If I change the "xcopy" to, for example, "xxcopy" I get the expected "File
not found" error so I guess Shell() and process.start() are at least having
a go.

Anyone able to point me in a direction to solve this?

Thanks for your time if you think about it and apologies if posted in wrong
group(s).

Arth.
Martin Kulov - 04 Dec 2005 22:10 GMT
> Hi,
>
[quoted text clipped - 28 lines]
>
> Arth.

Hi Arth,

One tip:
Start .bat file and print out the current working directory to see where are
you actually running at. Use pause command to see the results.

HTH,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.