Script to copy program to server shared folder
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Script to copy program to server shared folder

 
Post new topic   Reply to topic    Windows Server Forum Index -> Small Business Server 2000
Author Message
Lewej
Guest





Posted: Thu Oct 20, 2005 12:51 pm    Post subject: Script to copy program to server shared folder Reply with quote

Hi

I thought this would be easy!

I want to copy the whole of a directory structure to a mapped drive (Z:\) on
the server for backup purposes. I was planning to run this as a scheduled
task.

I wrote a script thingy like this, but it did not even get to first base:

z:
cd wdm
del *.* /q
c:
cd wdm
copy *.* Z:\wdm\

Can anyone offer any help please

Thanks

Lewej
Back to top
Kevin Weilbacher [SBS-MVP
Guest





Posted: Sat Oct 22, 2005 12:50 am    Post subject: Re: Script to copy program to server shared folder Reply with quote

I'm assuming the directory you want to copy is on a workstation. Why
wouldn't you simply run the Backup utility from that workstation and
schedule it to run as required?

--
Kevin Weilbacher [SBS-MVP]
"The days pass by so quickly now, the nights are seldom long"


"Lewej" <Lewej@discussions.microsoft.com> wrote in message
news:8C734F2B-8564-43C4-9CFA-193393827A1B@microsoft.com...
Quote:
Hi

I thought this would be easy!

I want to copy the whole of a directory structure to a mapped drive (Z:\)
on
the server for backup purposes. I was planning to run this as a scheduled
task.

I wrote a script thingy like this, but it did not even get to first base:

z:
cd wdm
del *.* /q
c:
cd wdm
copy *.* Z:\wdm\

Can anyone offer any help please

Thanks

Lewej
Back to top
Craig P.
Guest





Posted: Sat Oct 22, 2005 8:50 pm    Post subject: Re: Script to copy program to server shared folder Reply with quote

Kevins method would be prefered.

But the only thing I would change in your batch if your not getting to first
base, is try putting c:\wdm when doing a cd. But more importantly it is
considered a script and you may have some antivirus program blocking it or
some antispyware program blocking it.

Plus if there are subfolders in the wdm folder then copy will not do the
job, neither will del. You would need to use deltree and xcopy to do the
job for you.

Craig P.


"Kevin Weilbacher [SBS-MVP]" <kweilbacMVP@gte.net> wrote in message
news:uRPU3zp1FHA.3204@TK2MSFTNGP14.phx.gbl...
Quote:
I'm assuming the directory you want to copy is on a workstation. Why
wouldn't you simply run the Backup utility from that workstation and
schedule it to run as required?

--
Kevin Weilbacher [SBS-MVP]
"The days pass by so quickly now, the nights are seldom long"


"Lewej" <Lewej@discussions.microsoft.com> wrote in message
news:8C734F2B-8564-43C4-9CFA-193393827A1B@microsoft.com...
Hi

I thought this would be easy!

I want to copy the whole of a directory structure to a mapped drive (Z:\)
on
the server for backup purposes. I was planning to run this as a scheduled
task.

I wrote a script thingy like this, but it did not even get to first base:

z:
cd wdm
del *.* /q
c:
cd wdm
copy *.* Z:\wdm\

Can anyone offer any help please

Thanks

Lewej

Back to top
Lewej
Guest





Posted: Mon Oct 24, 2005 12:51 pm    Post subject: Re: Script to copy program to server shared folder Reply with quote

Thanks Guys
Not sure why I did not think of such a good - and obvious- solution!!
lewej

"Craig P." wrote:

Quote:
Kevins method would be prefered.

But the only thing I would change in your batch if your not getting to first
base, is try putting c:\wdm when doing a cd. But more importantly it is
considered a script and you may have some antivirus program blocking it or
some antispyware program blocking it.

Plus if there are subfolders in the wdm folder then copy will not do the
job, neither will del. You would need to use deltree and xcopy to do the
job for you.

Craig P.


"Kevin Weilbacher [SBS-MVP]" <kweilbacMVP@gte.net> wrote in message
news:uRPU3zp1FHA.3204@TK2MSFTNGP14.phx.gbl...
I'm assuming the directory you want to copy is on a workstation. Why
wouldn't you simply run the Backup utility from that workstation and
schedule it to run as required?

--
Kevin Weilbacher [SBS-MVP]
"The days pass by so quickly now, the nights are seldom long"


"Lewej" <Lewej@discussions.microsoft.com> wrote in message
news:8C734F2B-8564-43C4-9CFA-193393827A1B@microsoft.com...
Hi

I thought this would be easy!

I want to copy the whole of a directory structure to a mapped drive (Z:\)
on
the server for backup purposes. I was planning to run this as a scheduled
task.

I wrote a script thingy like this, but it did not even get to first base:

z:
cd wdm
del *.* /q
c:
cd wdm
copy *.* Z:\wdm\

Can anyone offer any help please

Thanks

Lewej




Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Small Business Server 2000 All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB