Computing.Net > Forums > Windows NT > NT Batch scripts

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

NT Batch scripts

Reply to Message Icon

Name: Richie
Date: May 8, 2003 at 00:45:31 Pacific
OS: NT
CPU/Ram: P3
Comment:

From a complete novice...
Anyone supply me with an example NT script and how to run it on my laptop. I want a script to kick off a number of jobs, so I can extract data from a unix box overnight.
Any help appreciated. ;o)



Sponsored Link
Ads by Google

Response Number 1
Name: ad
Date: May 8, 2003 at 12:53:33 Pacific
Reply:

by extract from a Unix server do you mean ftp??

you can create a .bat or .cmd file and just put dos commands in it...

If you are using FTP then you can use the -s switch to put all the ftp commands in it.. for example:
Create Get files.cmd
***Inside files.cmd ****
echo off
REM FTP command has a -s switch to run
REM FTP Commands
ftp -s:ftpcommands.txt ftp.someserver.com
copy c:\Documents and Settings\users\My documents\Movies\*.mpg C:\Movies\*.mpg
echo Movies have been copied!


***inside of ftpcommands.txt ****

username
password
cd /home/blah/blah
lcd c:\Documents and Settings\users\My documents\Movies
bin
mget *.mpg
bye

***End of ftpcommands.txt ****


0
Reply to Message Icon

Related Posts

See More


questions for an intervie... Login script with differe...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT Batch scripts

NT / DOS scripting www.computing.net/answers/windows-nt/nt-dos-scripting/2944.html

NT logon scripts www.computing.net/answers/windows-nt/nt-logon-scripts/239.html

batch script to launch a persistent app www.computing.net/answers/windows-nt/batch-script-to-launch-a-persistent-app/11156.html