would appreciate valuable help in setting up a batch file to perform
the following steps on w2003 server.

1.Stop service
2.backup c:\application folder\ to networked drive (share/map)
3.start service
4.ftp file to mainframe host

Thanks
AQ

Re: Batch file by bob

bob
Tue Nov 07 13:07:16 CST 2006

that wouldnt exactly be VBScript, now would it?


"aquaflow" <aquaflow4u@gmail.com> wrote in message
news:1162926146.400260.184850@k70g2000cwa.googlegroups.com...
> would appreciate valuable help in setting up a batch file to perform
> the following steps on w2003 server.
>
> 1.Stop service
> 2.backup c:\application folder\ to networked drive (share/map)
> 3.start service
> 4.ftp file to mainframe host
>
> Thanks
> AQ
>



Re: Batch file by dNagel

dNagel
Tue Nov 07 13:17:50 CST 2006

He's totally correct, but I'm feeling generous...


NET STOP SERVICENAME
XCOPY32 "c:\application folder\*.*" "\\share\map\application folder"
NET START SERVICENAME
ftp -n -s:test.scr


contents of test.scr
=======================================================================
open 11.11.11.11
[User_id]
[ftp_password]
binary
cd SomeFldr
mput c:\file.ext
quit


I'll leave the details and up to you

D.


aquaflow wrote:
> would appreciate valuable help in setting up a batch file to perform
> the following steps on w2003 server.
>
> 1.Stop service
> 2.backup c:\application folder\ to networked drive (share/map)
> 3.start service
> 4.ftp file to mainframe host
>
> Thanks
> AQ
>
>

Re: Batch file by OfficeGuyGoesWild

OfficeGuyGoesWild
Tue Nov 07 18:41:56 CST 2006

also put this in the scr file, before the mput command, to supress a
confirmation for each file copy:

prompt


..Marty
www.TheScriptLibrary.com

dNagel wrote:
> He's totally correct, but I'm feeling generous...
>
>
> NET STOP SERVICENAME
> XCOPY32 "c:\application folder\*.*" "\\share\map\application folder"
> NET START SERVICENAME
> ftp -n -s:test.scr
>
>
> contents of test.scr
> =======================================================================
> open 11.11.11.11
> [User_id]
> [ftp_password]
> binary
> cd SomeFldr
> mput c:\file.ext
> quit
>
>
> I'll leave the details and up to you
>
> D.
>
>
> aquaflow wrote:
> > would appreciate valuable help in setting up a batch file to perform
> > the following steps on w2003 server.
> >
> > 1.Stop service
> > 2.backup c:\application folder\ to networked drive (share/map)
> > 3.start service
> > 4.ftp file to mainframe host
> >
> > Thanks
> > AQ
> >
> >