473,569 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying Local Profile to network drive in .NET

Hello,

I am trying to find a way to create a scheduled task or
service that will copy my local profile folders
under "Documents and settings" to a network drive. This
would allow me to restore my settings if my profile became
tampered with or corrupt. Is there any sample code
available out there?

-Robert
Nov 22 '05 #1
4 1453
Thank you for getting me started down the path of the
creating a service to accomplish this. I created the
service with the code you provided me. However, I do have
few more challenges which I could use some more help.

The first challenge, is that I need a way to debug the
service before I deploy it, if this is possible.

The second challenge is that I need to copy the entire
directory underneath "Documents and Settings\rtaran ti" for
example to my back up drive (Ex. h:\profiles) I hace
attempted to use the following code:

'************** *************** *************** ******
FSO = CreateObject("S cripting.FileSy stemObject")
If (FSO.FolderExis ts(sDestination FolderPath)) Then
FSO.CopyFolder( sSourceFolderPa th, sDestinationFol derPath)
End If
'************** *************** *************** *******

My problem here is that some files in the subfolders, such
as the user.dat is locaked and cannot be copied. This
prevents the FileScripting object fomr continuing it's
job.
I noticed on my windows 2000 server machine, I have the
ability to perform the "CopyTo" method through
the "UserProfil es" tab under "My Computer/properites" to
copy the profile that I am logged in as to another
profile. This action seems to able to copy all the files
even though they are in session. Is there a way to re-use
code or objects like that?...Or someway to copy all the
files without having the process fail?

Thanks for all your help!

-Robert
-----Original Message-----
Hi Robert,

Here I write a sample for you. Hope this will help you.

using System.IO;
using System.Threadin g;
using System.Runtime. InteropServices ;
private static bool flag;
protected override void OnStart(string[] args) {
Thread wd = new Thread(new ThreadStart(Run Thread)); flag=true;
wd.Start();
}
/// Stop this service.
protected override void OnStop()
{
flag = false;
allDone.WaitOne ();
}
private static void RunThread()
{
while(flag)
{
try
{
File.Copy (@"c:\a.txt",@" \\fileserver\fs af\b.txt",true) ; // thefileserver is where your network drive lies
}
catch(Exception e)
{ // to log the exception. StreamWriter sr = File.AppendText (@"C:\service.l og"); sr.WriteLine (e.StackTrace.T oString()); sr.Flush();
sr.Close();
}
finally
{
}
}
allDone.Set();
}

Here is a link about how to write a windows service.
Please have a try and let me if this does the job for you.
Cheers!

--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
Subject: Copying Local Profile to network drive in .NET
Date: Mon, 18 Aug 2003 14:52:14 -0700
Lines: 10
Message-ID: <0b************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNl0vxGha0FcRu bQmyplraTC0riuw ==
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104941NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Hello,

I am trying to find a way to create a scheduled task or
service that will copy my local profile folders
under "Documents and settings" to a network drive. This
would allow me to restore my settings if my profile becametampered with or corrupt. Is there any sample code
available out there?

-Robert
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
.

Nov 22 '05 #2
Thank you for getting me started down the path of the
creating a service to accomplish this. I created the
service with the code you provided me. However, I do have
few more challenges which I could use some more help.

The first challenge, is that I need a way to debug the
service before I deploy it, if this is possible.

The second challenge is that I need to copy the entire
directory underneath "Documents and Settings\rtaran ti" for
example to my back up drive (Ex. h:\profiles) I hace
attempted to use the following code:

'************** *************** *************** ******
FSO = CreateObject("S cripting.FileSy stemObject")
If (FSO.FolderExis ts(sDestination FolderPath)) Then
FSO.CopyFolder( sSourceFolderPa th, sDestinationFol derPath)
End If
'************** *************** *************** *******

My problem here is that some files in the subfolders, such
as the user.dat is locaked and cannot be copied. This
prevents the FileScripting object fomr continuing it's
job.
I noticed on my windows 2000 server machine, I have the
ability to perform the "CopyTo" method through
the "UserProfil es" tab under "My Computer/properites" to
copy the profile that I am logged in as to another
profile. This action seems to able to copy all the files
even though they are in session. Is there a way to re-use
code or objects like that?...Or someway to copy all the
files without having the process fail?

Thanks for all your help!

-Robert
-----Original Message-----
Hi Robert,

Here I write a sample for you. Hope this will help you.

using System.IO;
using System.Threadin g;
using System.Runtime. InteropServices ;
private static bool flag;
protected override void OnStart(string[] args) {
Thread wd = new Thread(new ThreadStart(Run Thread)); flag=true;
wd.Start();
}
/// Stop this service.
protected override void OnStop()
{
flag = false;
allDone.WaitOne ();
}
private static void RunThread()
{
while(flag)
{
try
{
File.Copy (@"c:\a.txt",@" \\fileserver\fs af\b.txt",true) ; // thefileserver is where your network drive lies
}
catch(Exception e)
{ // to log the exception. StreamWriter sr = File.AppendText (@"C:\service.l og"); sr.WriteLine (e.StackTrace.T oString()); sr.Flush();
sr.Close();
}
finally
{
}
}
allDone.Set();
}

Here is a link about how to write a windows service.
Please have a try and let me if this does the job for you.
Cheers!

--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
Subject: Copying Local Profile to network drive in .NET
Date: Mon, 18 Aug 2003 14:52:14 -0700
Lines: 10
Message-ID: <0b************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNl0vxGha0FcRu bQmyplraTC0riuw ==
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104941NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Hello,

I am trying to find a way to create a scheduled task or
service that will copy my local profile folders
under "Documents and settings" to a network drive. This
would allow me to restore my settings if my profile becametampered with or corrupt. Is there any sample code
available out there?

-Robert
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
.

Nov 22 '05 #3
Peter, in reference to the "Copy To" method". Could you
tell what windows object and function call is used to
perform this task? Is there any documentation on using
this outside of the windows interface?

-Robert

-----Original Message-----
Hi Robert,

1. My problem here is that some files in the subfolders, such as the user.dat is locaked and cannot be copied. This
prevents the FileScripting object fomr continuing it's
job.
You cannot touch the ntuser.dat file in the current account. When you login, the ntuser.dat hive from the appropriate profile is loaded into the registry as the HKEY_CURRENT_US ER branch. You cannot even open the file programmatical ly for reading, because the OS locks the file for exclusive use. You have to login as another user (with admin rights) to access the file.

2. I noticed on my windows 2000 server machine, I have the ability to perform the "CopyTo" method through
the "UserProfil es" tab under "My Computer/properites" to
copy the profile that I am logged in as to another
profile. This action seems to able to copy all the files
even though they are in session. Is there a way to re- use code or objects like that?...Or someway to copy all the
files without having the process fail?

I have made a test and found that the ¡°CopyTo¡± method you refer to can not be applied to the current logon user account.

I suggest you do it in another account with admin rights [You may add the account to the administrators group]

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and
confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
References: <0b************ *************** *@phx.gbl>

<ZR*********** ***@cpmsftngxa0 6.phx.gbl>
Subject: RE: Copying Local Profile to network drive in .NETDate: Wed, 20 Aug 2003 10:32:05 -0700
Lines: 140
Message-ID: <01************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNnQPmZVnNP589 QSDGwdm3LOuLgfA ==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:105218NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Thank you for getting me started down the path of the
creating a service to accomplish this. I created the
service with the code you provided me. However, I do have few more challenges which I could use some more help.

The first challenge, is that I need a way to debug the
service before I deploy it, if this is possible.

The second challenge is that I need to copy the entire
directory underneath "Documents and Settings\rtaran ti" for example to my back up drive (Ex. h:\profiles) I hace
attempted to use the following code:

'************ *************** *************** ********
FSO = CreateObject("S cripting.FileSy stemObject")
If (FSO.FolderExis ts(sDestination FolderPath)) Then
FSO.CopyFolder( sSourceFolderPa th, sDestinationFol derPath)End If
'************ *************** *************** *********

My problem here is that some files in the subfolders, such as the user.dat is locaked and cannot be copied. This
prevents the FileScripting object fomr continuing it's
job.
I noticed on my windows 2000 server machine, I have the
ability to perform the "CopyTo" method through
the "UserProfil es" tab under "My Computer/properites" to
copy the profile that I am logged in as to another
profile. This action seems to able to copy all the files even though they are in session. Is there a way to re- use code or objects like that?...Or someway to copy all the
files without having the process fail?

Thanks for all your help!

-Robert
-----Original Message-----
Hi Robert,

Here I write a sample for you. Hope this will help you.

using System.IO;
using System.Threadin g;
using System.Runtime. InteropServices ;
private static bool flag;
protected override void OnStart(string[]

args)
{
Thread wd = new Thread(new

ThreadStart(R unThread));
flag=true;
wd.Start();
}
/// Stop this service.
protected override void OnStop()
{
flag = false;
allDone.WaitOne ();
}
private static void RunThread()
{
while(flag)
{
try
{
File.Copy

(@"c:\a.txt", @"\\fileserver\ fsaf\b.txt",tru e); // the
fileserver is where your network drive lies
}
catch(Exception e)
{ // to log the

exception.
StreamWriter sr =

File.AppendTe xt(@"C:\service .log");
sr.WriteLine

(e.StackTrace .ToString());
sr.Flush();
sr.Close();
}
finally
{
}
}
allDone.Set();
}

Here is a link about how to write a windows service.
Please have a try and let me if this does the job for you.Cheers!

--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
Subject: Copying Local Profile to network drive in .NET
Date: Mon, 18 Aug 2003 14:52:14 -0700
Lines: 10
Message-ID: <0b************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300Thread-Index: AcNl0vxGha0FcRu bQmyplraTC0riuw ==
Newsgroup s: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl

microsoft.pub lic.dotnet.gene ral:104941
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Hello,

I am trying to find a way to create a scheduled task or service that will copy my local profile folders
under "Documents and settings" to a network drive. This would allow me to restore my settings if my profile

became
tampered with or corrupt. Is there any sample code
available out there?

-Robert

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.

.


.

Nov 22 '05 #4
Hi Robert,

I am glad that I can help you.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
References: <0b************ *************** *@phx.gbl> <ZR************ **@cpmsftngxa06 .phx.gbl>
<01************ *************** *@phx.gbl>
<DY************ **@cpmsftngxa06 .phx.gbl>
<03************ *************** *@phx.gbl>
<Ff************ **@cpmsftngxa06 .phx.gbl>Subject: RE: Copying Local Profile to network drive in .NET
Date: Mon, 25 Aug 2003 07:34:38 -0700
Lines: 298
Message-ID: <0a************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNrFgMbUOY4iS9 QTtygk6E092RpbA ==
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:105966
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Thank you Peter. I think this is what I was looking for.
I really appreciate your efforts!
-Robert
-----Original Message-----
Hi Robert,

I think you may need to do it yourself.
There is a useful function SHGetFolderPath which will

retrieve the profile
related path.
http://support.microsoft.com/?id=252652
You may take a look at the link below.
http://support.microsoft.com/default.aspx?scid=kb;en-

us;310294

Hope this will help you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Robert Tarantino" <rt******@prome ga.com>
Sender: "Robert Tarantino" <rt******@prome ga.com>
References : <0b************ *************** *@phx.gbl>

<ZR********** ****@cpmsftngxa 06.phx.gbl>
<01********** *************** ***@phx.gbl>
<DY********** ****@cpmsftngxa 06.phx.gbl>
Subject: RE: Copying Local Profile to network drivein .NETDate: Fri, 22 Aug 2003 16:28:00 -0700
Lines: 232
Message-ID: <03************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNpBQbx51d76UK bQx+zcai9OVCbLw ==
Newsgroups : microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gblmicrosoft.publ ic.dotnet.gener al:105707NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

Peter, in reference to the "Copy To" method". Could you
tell what windows object and function call is used to
perform this task? Is there any documentation on using
this outside of the windows interface?
-Robert
-----Original Message-----
Hi Robert,

1. My problem here is that some files in thesubfolders,such
as the user.dat is locaked and cannot be copied. This
prevents the FileScripting object fomr continuing it's
job.
You cannot touch the ntuser.dat file in the current
account. When you
login, the ntuser.dat hive from the appropriate profile
is loaded into the
registry as the HKEY_CURRENT_US ER branch. You cannotevenopen the file
programmati cally for reading, because the OS locks the
file for exclusive
use. You have to login as another user (with admin
rights) to access the
file.

2. I noticed on my windows 2000 server machine, I have
the
ability to perform the "CopyTo" method through
the "UserProfil es" tab under "My Computer/properites"tocopy the profile that I am logged in as to another
profile. This action seems to able to copy all thefileseven though they are in session. Is there a way to re-
use
code or objects like that?...Or someway to copy all the
files without having the process fail?

I have made a test and found that the ¡°CopyTo¡± method
you refer to can
not be applied to the current logon user account.

I suggest you do it in another account with admin rights
[You may add the
account to the administrators group]

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and
confers no rights.
--------------------
>Content-Class: urn:content-classes:message
>From: "Robert Tarantino" <rt******@prome ga.com>
>Sender: "Robert Tarantino" <rt******@prome ga.com>
>References : <0b************ *************** *@phx.gbl>
<ZR******** ******@cpmsftng xa06.phx.gbl>
>Subject: RE: Copying Local Profile to network drive
in .NET
>Date: Wed, 20 Aug 2003 10:32:05 -0700
>Lines: 140
>Message-ID: <01************ *************** *@phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Thread-Index: AcNnQPmZVnNP589 QSDGwdm3LOuLgfA ==
>X-MimeOLE: Produced By Microsoft MimeOLEV5.50.4910.030 0>Newsgroups : microsoft.publi c.dotnet.genera l
>Path: cpmsftngxa06.ph x.gbl
>Xref: cpmsftngxa06.ph x.gbl
microsoft.pu blic.dotnet.gen eral:105218
>NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
>X-Tomcat-NG: microsoft.publi c.dotnet.genera l
>
>Thank you for getting me started down the path of the
>creating a service to accomplish this. I created the
>service with the code you provided me. However, I do
have
>few more challenges which I could use some more help.
>
>The first challenge, is that I need a way to debug the
>service before I deploy it, if this is possible.
>
>The second challenge is that I need to copy the entire
>director y underneath "Documents and Settings\rtaran ti"
for
>example to my back up drive (Ex. h:\profiles) I hace
>attempte d to use the following code:
>
>'********* *************** *************** ***********
>FSO = CreateObject("S cripting.FileSy stemObject")
>If (FSO.FolderExis ts(sDestination FolderPath)) Then
> FSO.CopyFolder( sSourceFolderPa th,
sDestination FolderPath)
>End If
>'********* *************** *************** ************
>
>My problem here is that some files in the subfolders,
such
>as the user.dat is locaked and cannot be copied. This
>prevents the FileScripting object fomr continuing it's
>job.
>
>
>I noticed on my windows 2000 server machine, I havethe>ability to perform the "CopyTo" method through
>the "UserProfil es" tab under "My Computer/properites"to>copy the profile that I am logged in as to another
>profile. This action seems to able to copy all the
files
>even though they are in session. Is there a way to re-
use
>code or objects like that?...Or someway to copy allthe>files without having the process fail?
>
>Thanks for all your help!
>
>-Robert
>
>
>
>>-----Original Message-----
>>Hi Robert,
>>
>>Here I write a sample for you. Hope this will helpyou.>>
>>using System.IO;
>>using System.Threadin g;
>>using System.Runtime. InteropServices ;
>> private static bool flag;
>> protected override void OnStart(string[]
>args)
>> {
>> Thread wd = new Thread(new
>ThreadStar t(RunThread));
>> flag=true;
>> wd.Start();
>> }
>> /// Stop this service.
>> protected override void OnStop()
>> {
>> flag = false;
>> allDone.WaitOne ();
>> }
>> private static void RunThread()
>> {
>> while(flag)
>> {
>> try
>> {
>> File.Copy
>(@"c:\a.tx t",@"\\fileserv er\fsaf\b.txt", true); // the
>>fileserve r is where your network drive lies
>> }
>> catch(Exception e)
>> { // to log the
>exceptio n.
>> StreamWriter sr =
>File.Appen dText(@"C:\serv ice.log");
>> sr.WriteLine
>(e.StackTr ace.ToString()) ;
>> sr.Flush();
>> sr.Close();
>> }
>> finally
>> {
>> }
>> }
>> allDone.Set();
>> }
>>
>>Here is a link about how to write a windows service.
>>Please have a try and let me if this does the job for
you.
>>Cheers!
>>
>>--------------------
>>>Conten t-Class: urn:content-classes:message
>>>From: "Robert Tarantino" <rt******@prome ga.com>
>>>Sender : "Robert Tarantino" <rt******@prome ga.com>
>>>Subjec t: Copying Local Profile to network drivein .NET>>>Date: Mon, 18 Aug 2003 14:52:14 -0700
>>>Lines: 10
>>>Messag e-ID: <0b************ *************** *@phx.gbl>
>>>MIME-Version: 1.0
>>>Conten t-Type: text/plain;
>>> charset="iso-8859-1"
>>>Conten t-Transfer-Encoding: 7bit
>>>X-Newsreader: Microsoft CDO for Windows 2000
>>>X-MIMEOLE: Produced By Microsoft MimeOLE
V5.50.4910.0 300
>>>Thread-Index: AcNl0vxGha0FcRu bQmyplraTC0riuw ==
>>>Newsgrou ps: microsoft.publi c.dotnet.genera l
>>>Path: cpmsftngxa06.ph x.gbl
>>>Xref: cpmsftngxa06.ph x.gbl
>microsoft. public.dotnet.g eneral:104941
>>>NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
>>>X-Tomcat-NG: microsoft.publi c.dotnet.genera l
>>>
>>>Hello,
>>>
>>>I am trying to find a way to create a scheduled task
or
>>>servic e that will copy my local profile folders
>>>under "Documents and settings" to a network drive.
This
>>>would allow me to restore my settings if my profile
>became
>>>tamper ed with or corrupt. Is there any sample code
>>>availabl e out there?
>>>
>>>-Robert
>>>
>>
>>
>>Regards ,
>>Peter Huang
>>Microso ft Online Partner Support
>>Get Secure! www.microsoft.com/security
>>This posting is provided "as is" with no warrantiesand>confers no rights.
>>
>>.
>>
>

.

.


Nov 22 '05 #5

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

Similar topics

3
3626
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore my settings if my profile became tampered with or corrupt. Is there any sample code available out there? -Robert
0
1265
by: MikeL | last post by:
I am using Access 2K and have created a simple data access page which only works properly when it is run from the local C drive. The data file that is being accessed is held on a shared network drive, and the data access page works for anyone on our domain, but only if the htm file is run from the local c drive. If I attempt to run it from...
2
2285
by: ReidarT | last post by:
I have a copyfile x y and built this to a exe-file.' When I run the exe-file built in the bin-directory and copy it to other machines I get an errormessage concerning security policy. I don't need a setup file for application, its just a simple file copying from x y. How can I solve this problem without using VB6? reidarT
3
1598
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
14
2312
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the .exe (on the network drive, on the server) "Full Trust." From the client, double-click on the ..exe (on the network drive, on the server) and it runs...
2
2663
by: .Net Believer | last post by:
I using the routine below to copy file to a network drive for a regular backup process. Before calling this routine I using another function to check the presence of the LAN connection and the server where the network drive exists. Although of this check I am sometimes getting an exception (in 5% of times)saying "Could not find the...
6
1425
by: Sue | last post by:
Hello We have an application where the user would upload files (max size of 200 mb) from their client machine. This application will run on a web server (its a web server which would be used by the general public), because of obvious reason, this server will not have access to any shared directory on the network. Currently we store the...
3
1342
by: Jeries Shahin | last post by:
Hi I am trying to copy files from a folder on a Novel machine, the folder is in the UMC format (i cannot map a network drive for some business reasons). Upon copying, it fires an IOException saying that the file does not exist. Any idea how can I do it? (the user copying is the Novel Administrator)
2
7986
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a network drive, copying the same files from the same source drive and to the same destination drive, it gives me the following exception: ...
3
5443
by: RLN | last post by:
(New to SQL Server Installs) I installed SQL Server 2005 Developer Edition on a WinXP-SP2 workstation and can see some enterprise databases on the network just fine. My problem is I cannot register a local database on the local drive for testing/education purposes. (I accepted all of the defaults on the install and thought all was well.)
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.