[windows2000] Re: Copying a file to a network location

  • From: "Freitas, Eduardo" <Eduardo.Freitas@xxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Thu, 13 May 2004 13:08:04 -0500

No. I'm just testing the script.
I managed to get it to work but not very nicely. It now generates the file
on the local computer (c:\) and copies that file to \\server\path-to-log\

Apparently it can't generate the log straight to \\server\path-to-log\ or a
mapped folder. In what environment does the script run on the remote
computer? As the user who is logged on (on the computer) or as the user who
ran the script?

Answers:
1. I was just testing out that script in the command line.
2. The user who is running the script is an administrator in all computers
in this OU.
3. I tried with the file existing and not. Both ways there was an error.
4. It runs fine generating the log to c:\ on the current computer

Thanks a lot for your help!

Eduardo

-----Original Message-----
From: Ray at work [mailto:listray@xxxxxxxxxx] 
Sent: quinta-feira, 13 de maio de 2004 13:48
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: Copying a file to a network location

What happens when you change the path to UNC?  The script you posted wasn't
UNC.  It was a network drive mapping target.

Are you running this as a scheduled task?

When you manually run it while logged on to the computer with the P:
mapping, everything is fine?

Does the user running it have share and NTFS permissions to the target
source?

Does the file already exist in the target location?

Does the code run okay if you change the target path to a local drive with
wide open NTFS permissions?

Ray at work 

> -----Original Message-----
> From: windows2000-bounce@xxxxxxxxxxxxx 
> [mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of 
> Freitas, Eduardo
> Sent: Thursday, May 13, 2004 9:23 AM
> To: 'windows2000@xxxxxxxxxxxxx'
> Subject: [windows2000] Re: Copying a file to a network location
> 
> Ray,
> 
> The error message is "The Application event could log could 
> not be backed
> up."
> 
> -------------------------code---------------------------------
> 
>   For Each objLogfile in colLogFiles
>       errBackupLog = objLogFile.BackupEventLog("C:\EVT\" & 
> strLogName & "_"
> & "App.evt")
>       If errBackupLog <> 0 Then        
>           Wscript.Echo "The Application event log could not 
> be backed up."
>       Else
>           objLogFile.ClearEventLog()
>       End If
>   Next
> 
> Regards,
> 
> Eduardo
> 
> 
>  
> -----Original Message-----
> From: Ray at work [mailto:listray@xxxxxxxxxx] 
> Sent: quinta-feira, 13 de maio de 2004 09:54
> To: windows2000@xxxxxxxxxxxxx
> Subject: [windows2000] Re: Copying a file to a network location
> 
> What is the error that you get?
> 
> Ray at work
> 
> 
> > -----Original Message-----
> > From: Freitas, Eduardo
> > 
> > Can't get to works as in:
> > 
> > errBackupLog = objLogFile.BackupEventLog("P:\" & strLogName & "_" &
> > "App.evt")
> 
> 
> ********************************************************
> This Weeks Sponsor StressedPuppy.com Games
> Feeling stressed out? Check out our games to
> relieve your stress.
> http://www.StressedPuppy.com
> ********************************************************
> To Unsubscribe, set digest or vacation
> mode or view archives use the below link.
> 
> http://thethin.net/win2000list.cfm
> ********************************************************
> This Weeks Sponsor StressedPuppy.com Games
> Feeling stressed out? Check out our games to
> relieve your stress.
> http://www.StressedPuppy.com
> ********************************************************
> To Unsubscribe, set digest or vacation
> mode or view archives use the below link.
> 
> http://thethin.net/win2000list.cfm
> 


********************************************************
This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm
********************************************************
This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: