|
View Full Version : Files transfer automation thru Batch file on W2k
netadmin@almullagroup.com 8:52 AM 2/4/2004
Subject: Files transfer automation thru Batch file on W2k
Hi !!!
Anybody can help me to do automation of the below requirements using simple batch file
1) On local pc,getting files from ftp server with authentication 2) creation of new sub directory on remote nt server 3) Transferring downloaded files to remote nt server sub directory
Regards Mangapathi
|
Lacking more specific information... ftp -s:c:\FTPScript.txt md \\Servername\MyShare\MyDir move c:\downloads\*.* \\Servername\MyShare\MyDir /Y Where FTPScript.txt is something like: o ftp.someserver.com myusername mypass lcd c:\downloads cd /remotedir/somedir prompt bin mget *.* close quit "netadmin@almullagroup.com" wrote in message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... > 8:52 AM 2/4/2004 > > Subject: Files transfer automation thru Batch file on W2k > > Hi !!! > > Anybody can help me to do automation of the below > requirements using simple batch file > > 1) On local pc,getting files from ftp server with > authentication > 2) creation of new sub directory on remote nt server > 3) Transferring downloaded files to remote nt server sub > directory > > > > Regards > Mangapathi >
|
Thank you for your batch file. Batch file is working fine till ftp script, but for the below steps, i am getting error message " Logon failure: unknown user name or bad password.". md \\Servername\MyShare\MyDir move c:\downloads\*.* \\Servername\MyShare\MyDir /Y For the above commands,i.e. \\servername(Remote server) how to mention useranme & password for authentication in batch file. Could u help me. Regards Mangapathi >-----Original Message----- >Lacking more specific information... > >ftp -s:c:\FTPScript.txt >md \\Servername\MyShare\MyDir >move c:\downloads\*.* \\Servername\MyShare\MyDir /Y > >Where FTPScript.txt is something like: >o ftp.someserver.com >myusername >mypass >lcd c:\downloads >cd /remotedir/somedir >prompt >bin >mget *.* >close >quit > >"netadmin@almullagroup.com" wrote in >message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >> 8:52 AM 2/4/2004 >> >> Subject: Files transfer automation thru Batch file on W2k >> >> Hi !!! >> >> Anybody can help me to do automation of the below >> requirements using simple batch file >> >> 1) On local pc,getting files from ftp server with >> authentication >> 2) creation of new sub directory on remote nt server >> 3) Transferring downloaded files to remote nt server sub >> directory >> >> >> >> Regards >> Mangapathi >> > > >. >
|
Mangapathi [anonymous@discussions.microsoft.com] posted: [color=blue] > Thank you for your batch file. Batch file is working fine > till ftp script, but for the below steps, i am getting > error message " Logon failure: unknown user name or > bad password.".[/color]
Where Paul mentioned "myusername" and "mypassword", he was meaning that you should substitute a working username and password on your FTP server. If you run Paul's script verbatim, it will fail as you posted.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
"Mangapathi" wrote in message news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=blue] > Thank you for your batch file. Batch file is working fine > till ftp script, but for the below steps, i am getting > error message " Logon failure: unknown user name or > bad password.".[/color]
Change myusername and mypass to the username and password you need to login to the ftp server. [color=blue] > md \\Servername\MyShare\MyDir > move c:\downloads\*.* \\Servername\MyShare\MyDir /Y > > > For the above commands,i.e. \\servername(Remote server) > how to mention useranme & password > for authentication in batch file. Could u help me.[/color]
Try this. Pick a free drive letter such as X then do this instead
net use x: \\Servername\ShareName yourusername yourpassword md x:\MyDir move c:\downloads\*.* x:\MyDir /Y net use x: /delete
Where "yourusername" and "yourpassword" are the username and password you need to use to access the share. Also set the permissions on the batch file so no one who shouldn't see your password can't see it. [color=blue] > Regards > Mangapathi >[color=green] >>-----Original Message----- >>Lacking more specific information... >> >>ftp -s:c:\FTPScript.txt >>md \\Servername\MyShare\MyDir >>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >> >>Where FTPScript.txt is something like: >>o ftp.someserver.com >>myusername >>mypass >>lcd c:\downloads >>cd /remotedir/somedir >>prompt >>bin >>mget *.* >>close >>quit >> >>"netadmin@almullagroup.com"[/color] > wrote in[color=green] >>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl...[color=darkred] >>> 8:52 AM 2/4/2004 >>> >>> Subject: Files transfer automation thru Batch file on[/color][/color] > W2k[color=green][color=darkred] >>> >>> Hi !!! >>> >>> Anybody can help me to do automation of the below >>> requirements using simple batch file >>> >>> 1) On local pc,getting files from ftp server with >>> authentication >>> 2) creation of new sub directory on remote nt server >>> 3) Transferring downloaded files to remote nt server sub >>> directory >>> >>> >>> >>> Regards >>> Mangapathi >>>[/color] >> >> >>. >>[/color][/color]
|
"Wadester" wrote in message news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=blue] > Mangapathi [anonymous@discussions.microsoft.com] posted: >[color=green] > > Thank you for your batch file. Batch file is working fine > > till ftp script, but for the below steps, i am getting > > error message " Logon failure: unknown user name or > > bad password.".[/color] > > Where Paul mentioned "myusername" and "mypassword", he was meaning that > you should substitute a working username and password on your FTP > server. If you run Paul's script verbatim, it will fail as you posted. > > > ws > > -- > The sea was angry that day, my friends. Like an old man, trying to send > back soup at a deli.[/color]
....
From where I was standing, I could see directly into the eye of the great fish. [JERRY: Mammal.] Whatever.
|
Al Dunbar [MS-MVP] [alan-no-drub-spam@hotmail.com] posted: [color=blue] > "Wadester" wrote in message > news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=green] >> Mangapathi [anonymous@discussions.microsoft.com] posted: >>[color=darkred] >>> Thank you for your batch file. Batch file is working fine >>> till ftp script, but for the below steps, i am getting >>> error message " Logon failure: unknown user name or >>> bad password.".[/color] >> >> Where Paul mentioned "myusername" and "mypassword", he was meaning >> that you should substitute a working username and password on your >> FTP server. If you run Paul's script verbatim, it will fail as you >> posted. >> >> >> ws >> >> -- >> The sea was angry that day, my friends. Like an old man, trying to >> send back soup at a deli.[/color] > > ... > > From where I was standing, I could see directly into the eye of the > great fish. [JERRY: Mammal.] Whatever.[/color]
As if sensing my presence, he let out a great bellow. I said, "Easy, big fella!"
|
"Wadester" wrote in message news:uP6K9W16DHA.1948@TK2MSFTNGP12.phx.gbl...[color=blue] > Al Dunbar [MS-MVP] [alan-no-drub-spam@hotmail.com] posted: >[color=green] > > "Wadester" wrote in message > > news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=darkred] > >> Mangapathi [anonymous@discussions.microsoft.com] posted: > >> > >>> Thank you for your batch file. Batch file is working fine > >>> till ftp script, but for the below steps, i am getting > >>> error message " Logon failure: unknown user name or > >>> bad password.". > >> > >> Where Paul mentioned "myusername" and "mypassword", he was meaning > >> that you should substitute a working username and password on your > >> FTP server. If you run Paul's script verbatim, it will fail as you > >> posted. > >> > >> > >> ws > >> > >> -- > >> The sea was angry that day, my friends. Like an old man, trying to > >> send back soup at a deli.[/color] > > > > ... > > > > From where I was standing, I could see directly into the eye of the > > great fish. [JERRY: Mammal.] Whatever.[/color] > > As if sensing my presence, he let out a great bellow. I said, "Easy, big > fella!"[/color]
LOL! one of my favourites to. But let's not burden the ng with this any further:
[url]http://www.interleaves.org/~rteeter/seinstry.html[/url]
/Al
|
i mean not for ftp. for remote nt server authentication,how to define in batch file means with syntax. Regards Mangapathi [color=blue] >-----Original Message----- >"Mangapathi" wrote[/color] in message[color=blue] >news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=green] >> Thank you for your batch file. Batch file is working[/color][/color] fine[color=blue][color=green] >> till ftp script, but for the below steps, i am getting >> error message " Logon failure: unknown user name or >> bad password.".[/color] > >Change myusername and mypass to the username and[/color] password you need to login[color=blue] >to the ftp server. >[color=green] >> md \\Servername\MyShare\MyDir >> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >> >> >> For the above commands,i.e. \\servername(Remote server) >> how to mention useranme & password >> for authentication in batch file. Could u help me.[/color] > >Try this. Pick a free drive letter such as X then do this[/color] instead[color=blue] > >net use x: \\Servername\ShareName yourusername[/color] yourpassword[color=blue] >md x:\MyDir >move c:\downloads\*.* x:\MyDir /Y >net use x: /delete > >Where "yourusername" and "yourpassword" are the username[/color] and password you[color=blue] >need to use to access the share. Also set the[/color] permissions on the batch file[color=blue] >so no one who shouldn't see your password can't see it. >[color=green] >> Regards >> Mangapathi >>[color=darkred] >>>-----Original Message----- >>>Lacking more specific information... >>> >>>ftp -s:c:\FTPScript.txt >>>md \\Servername\MyShare\MyDir >>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>> >>>Where FTPScript.txt is something like: >>>o ftp.someserver.com >>>myusername >>>mypass >>>lcd c:\downloads >>>cd /remotedir/somedir >>>prompt >>>bin >>>mget *.* >>>close >>>quit >>> >>>"netadmin@almullagroup.com"[/color] >> wrote in[color=darkred] >>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>> 8:52 AM 2/4/2004 >>>> >>>> Subject: Files transfer automation thru Batch file on[/color] >> W2k[color=darkred] >>>> >>>> Hi !!! >>>> >>>> Anybody can help me to do automation of the below >>>> requirements using simple batch file >>>> >>>> 1) On local pc,getting files from ftp server with >>>> authentication >>>> 2) creation of new sub directory on remote nt server >>>> 3) Transferring downloaded files to remote nt server[/color][/color][/color] sub[color=blue][color=green][color=darkred] >>>> directory >>>> >>>> >>>> >>>> Regards >>>> Mangapathi >>>> >>> >>> >>>. >>>[/color][/color] > > >. >[/color]
|
How to create directory with system monthyear from the batch file. eg.1. monthend-jan04 2. monthend-feb04 Could u help me. [color=blue] >-----Original Message----- >i mean not for ftp. for remote nt server >authentication,how to define in batch file means with >syntax. > >Regards >Mangapathi >[color=green] >>-----Original Message----- >>"Mangapathi" wrote[/color] >in message[color=green] >>news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=darkred] >>> Thank you for your batch file. Batch file is working[/color][/color] >fine[color=green][color=darkred] >>> till ftp script, but for the below steps, i am getting >>> error message " Logon failure: unknown user name or >>> bad password.".[/color] >> >>Change myusername and mypass to the username and[/color] >password you need to login[color=green] >>to the ftp server. >>[color=darkred] >>> md \\Servername\MyShare\MyDir >>> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>> >>> >>> For the above commands,i.e. \\servername(Remote server) >>> how to mention useranme & password >>> for authentication in batch file. Could u help me.[/color] >> >>Try this. Pick a free drive letter such as X then do[/color][/color] this[color=blue] >instead[color=green] >> >>net use x: \\Servername\ShareName yourusername[/color] >yourpassword[color=green] >>md x:\MyDir >>move c:\downloads\*.* x:\MyDir /Y >>net use x: /delete >> >>Where "yourusername" and "yourpassword" are the username[/color] >and password you[color=green] >>need to use to access the share. Also set the[/color] >permissions on the batch file[color=green] >>so no one who shouldn't see your password can't see it. >>[color=darkred] >>> Regards >>> Mangapathi >>> >>>>-----Original Message----- >>>>Lacking more specific information... >>>> >>>>ftp -s:c:\FTPScript.txt >>>>md \\Servername\MyShare\MyDir >>>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>> >>>>Where FTPScript.txt is something like: >>>>o ftp.someserver.com >>>>myusername >>>>mypass >>>>lcd c:\downloads >>>>cd /remotedir/somedir >>>>prompt >>>>bin >>>>mget *.* >>>>close >>>>quit >>>> >>>>"netadmin@almullagroup.com" >>> wrote in >>>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>>> 8:52 AM 2/4/2004 >>>>> >>>>> Subject: Files transfer automation thru Batch file on >>> W2k >>>>> >>>>> Hi !!! >>>>> >>>>> Anybody can help me to do automation of the below >>>>> requirements using simple batch file >>>>> >>>>> 1) On local pc,getting files from ftp server with >>>>> authentication >>>>> 2) creation of new sub directory on remote nt server >>>>> 3) Transferring downloaded files to remote nt server[/color][/color] >sub[color=green][color=darkred] >>>>> directory >>>>> >>>>> >>>>> >>>>> Regards >>>>> Mangapathi >>>>> >>>> >>>> >>>>. >>>>[/color] >> >> >>. >>[/color] >. >[/color]
|
Using the Universal Date Parser, UnivDate.bat, from tip 4835 in the 'Tips & Tricks' at [url]http://www.jsiinc.com[/url], and MMM.bat from tip 6837: In the beginning of you batch file: call Univdate set /a year=10000%yy%%%10000 if %year% GTR 99 set year=%yy:~2,2% call MMM M3 Ten to create a directory: md monthend-%M3%%year% On Sat, 7 Feb 2004 00:56:44 -0800, "Mangapathi" wrote: [color=blue] >How to create directory with system monthyear from the >batch file. >eg.1. monthend-jan04 > 2. monthend-feb04 > >Could u help me. >[color=green] >>-----Original Message----- >>i mean not for ftp. for remote nt server >>authentication,how to define in batch file means with >>syntax. >> >>Regards >>Mangapathi >>[color=darkred] >>>-----Original Message----- >>>"Mangapathi" wrote[/color] >>in message[color=darkred] >>>news:969401c3eb1d$8f042ba0$a301280a@phx.gbl... >>>> Thank you for your batch file. Batch file is working[/color] >>fine[color=darkred] >>>> till ftp script, but for the below steps, i am getting >>>> error message " Logon failure: unknown user name or >>>> bad password.". >>> >>>Change myusername and mypass to the username and[/color] >>password you need to login[color=darkred] >>>to the ftp server. >>> >>>> md \\Servername\MyShare\MyDir >>>> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>> >>>> >>>> For the above commands,i.e. \\servername(Remote server) >>>> how to mention useranme & password >>>> for authentication in batch file. Could u help me. >>> >>>Try this. Pick a free drive letter such as X then do[/color][/color] >this[color=green] >>instead[color=darkred] >>> >>>net use x: \\Servername\ShareName yourusername[/color] >>yourpassword[color=darkred] >>>md x:\MyDir >>>move c:\downloads\*.* x:\MyDir /Y >>>net use x: /delete >>> >>>Where "yourusername" and "yourpassword" are the username[/color] >>and password you[color=darkred] >>>need to use to access the share. Also set the[/color] >>permissions on the batch file[color=darkred] >>>so no one who shouldn't see your password can't see it. >>> >>>> Regards >>>> Mangapathi >>>> >>>>>-----Original Message----- >>>>>Lacking more specific information... >>>>> >>>>>ftp -s:c:\FTPScript.txt >>>>>md \\Servername\MyShare\MyDir >>>>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>>> >>>>>Where FTPScript.txt is something like: >>>>>o ftp.someserver.com >>>>>myusername >>>>>mypass >>>>>lcd c:\downloads >>>>>cd /remotedir/somedir >>>>>prompt >>>>>bin >>>>>mget *.* >>>>>close >>>>>quit >>>>> >>>>>"netadmin@almullagroup.com" >>>> wrote in >>>>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>>>> 8:52 AM 2/4/2004 >>>>>> >>>>>> Subject: Files transfer automation thru Batch file on >>>> W2k >>>>>> >>>>>> Hi !!! >>>>>> >>>>>> Anybody can help me to do automation of the below >>>>>> requirements using simple batch file >>>>>> >>>>>> 1) On local pc,getting files from ftp server with >>>>>> authentication >>>>>> 2) creation of new sub directory on remote nt server >>>>>> 3) Transferring downloaded files to remote nt server[/color] >>sub[color=darkred] >>>>>> directory >>>>>> >>>>>> >>>>>> >>>>>> Regards >>>>>> Mangapathi >>>>>> >>>>> >>>>> >>>>>. >>>>> >>> >>> >>>. >>>[/color] >>. >>[/color][/color]
Jerold Schulman Windows: General MVP JSI, Inc. [url]http://www.jsiinc.com[/url]
|
"Mangapathi" wrote in message news:c05401c3ed55$6dcd9ae0$a001280a@phx.gbl...[color=blue] >i mean not for ftp. for remote nt server > authentication,how to define in batch file means with > syntax.[/color]
By mounting the remote share as a local drive you are loged in...
net use drive share user password
ftp -s:c:\FTPScript.txt rem Pick a free drive letter such as X net use x: \\Servername\ShareName yourusername yourpassword md x:\MyDir move c:\downloads\*.* x:\MyDir /Y net use x: /delete
Where FTPScript.txt is something like: o ftp.someserver.com myusername mypass lcd c:\downloads cd /remotedir/somedir prompt bin mget *.* close quit
Where "yourusername" and "yourpassword" are the username and password you need to use to access the share. Also set the permissions on the batch file so no one who shouldn't see your password can't see it.
|
Lacking more specific information... ftp -s:c:\FTPScript.txt md \\Servername\MyShare\MyDir move c:\downloads\*.* \\Servername\MyShare\MyDir /Y Where FTPScript.txt is something like: o ftp.someserver.com myusername mypass lcd c:\downloads cd /remotedir/somedir prompt bin mget *.* close quit "netadmin@almullagroup.com" wrote in message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... > 8:52 AM 2/4/2004 > > Subject: Files transfer automation thru Batch file on W2k > > Hi !!! > > Anybody can help me to do automation of the below > requirements using simple batch file > > 1) On local pc,getting files from ftp server with > authentication > 2) creation of new sub directory on remote nt server > 3) Transferring downloaded files to remote nt server sub > directory > > > > Regards > Mangapathi >
|
Thank you for your batch file. Batch file is working fine till ftp script, but for the below steps, i am getting error message " Logon failure: unknown user name or bad password.". md \\Servername\MyShare\MyDir move c:\downloads\*.* \\Servername\MyShare\MyDir /Y For the above commands,i.e. \\servername(Remote server) how to mention useranme & password for authentication in batch file. Could u help me. Regards Mangapathi >-----Original Message----- >Lacking more specific information... > >ftp -s:c:\FTPScript.txt >md \\Servername\MyShare\MyDir >move c:\downloads\*.* \\Servername\MyShare\MyDir /Y > >Where FTPScript.txt is something like: >o ftp.someserver.com >myusername >mypass >lcd c:\downloads >cd /remotedir/somedir >prompt >bin >mget *.* >close >quit > >"netadmin@almullagroup.com" wrote in >message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >> 8:52 AM 2/4/2004 >> >> Subject: Files transfer automation thru Batch file on W2k >> >> Hi !!! >> >> Anybody can help me to do automation of the below >> requirements using simple batch file >> >> 1) On local pc,getting files from ftp server with >> authentication >> 2) creation of new sub directory on remote nt server >> 3) Transferring downloaded files to remote nt server sub >> directory >> >> >> >> Regards >> Mangapathi >> > > >. >
|
Mangapathi [anonymous@discussions.microsoft.com] posted: [color=blue] > Thank you for your batch file. Batch file is working fine > till ftp script, but for the below steps, i am getting > error message " Logon failure: unknown user name or > bad password.".[/color]
Where Paul mentioned "myusername" and "mypassword", he was meaning that you should substitute a working username and password on your FTP server. If you run Paul's script verbatim, it will fail as you posted.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
"Mangapathi" wrote in message news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=blue] > Thank you for your batch file. Batch file is working fine > till ftp script, but for the below steps, i am getting > error message " Logon failure: unknown user name or > bad password.".[/color]
Change myusername and mypass to the username and password you need to login to the ftp server. [color=blue] > md \\Servername\MyShare\MyDir > move c:\downloads\*.* \\Servername\MyShare\MyDir /Y > > > For the above commands,i.e. \\servername(Remote server) > how to mention useranme & password > for authentication in batch file. Could u help me.[/color]
Try this. Pick a free drive letter such as X then do this instead
net use x: \\Servername\ShareName yourusername yourpassword md x:\MyDir move c:\downloads\*.* x:\MyDir /Y net use x: /delete
Where "yourusername" and "yourpassword" are the username and password you need to use to access the share. Also set the permissions on the batch file so no one who shouldn't see your password can't see it. [color=blue] > Regards > Mangapathi >[color=green] >>-----Original Message----- >>Lacking more specific information... >> >>ftp -s:c:\FTPScript.txt >>md \\Servername\MyShare\MyDir >>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >> >>Where FTPScript.txt is something like: >>o ftp.someserver.com >>myusername >>mypass >>lcd c:\downloads >>cd /remotedir/somedir >>prompt >>bin >>mget *.* >>close >>quit >> >>"netadmin@almullagroup.com"[/color] > wrote in[color=green] >>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl...[color=darkred] >>> 8:52 AM 2/4/2004 >>> >>> Subject: Files transfer automation thru Batch file on[/color][/color] > W2k[color=green][color=darkred] >>> >>> Hi !!! >>> >>> Anybody can help me to do automation of the below >>> requirements using simple batch file >>> >>> 1) On local pc,getting files from ftp server with >>> authentication >>> 2) creation of new sub directory on remote nt server >>> 3) Transferring downloaded files to remote nt server sub >>> directory >>> >>> >>> >>> Regards >>> Mangapathi >>>[/color] >> >> >>. >>[/color][/color]
|
"Wadester" wrote in message news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=blue] > Mangapathi [anonymous@discussions.microsoft.com] posted: >[color=green] > > Thank you for your batch file. Batch file is working fine > > till ftp script, but for the below steps, i am getting > > error message " Logon failure: unknown user name or > > bad password.".[/color] > > Where Paul mentioned "myusername" and "mypassword", he was meaning that > you should substitute a working username and password on your FTP > server. If you run Paul's script verbatim, it will fail as you posted. > > > ws > > -- > The sea was angry that day, my friends. Like an old man, trying to send > back soup at a deli.[/color]
....
From where I was standing, I could see directly into the eye of the great fish. [JERRY: Mammal.] Whatever.
|
Al Dunbar [MS-MVP] [alan-no-drub-spam@hotmail.com] posted: [color=blue] > "Wadester" wrote in message > news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=green] >> Mangapathi [anonymous@discussions.microsoft.com] posted: >>[color=darkred] >>> Thank you for your batch file. Batch file is working fine >>> till ftp script, but for the below steps, i am getting >>> error message " Logon failure: unknown user name or >>> bad password.".[/color] >> >> Where Paul mentioned "myusername" and "mypassword", he was meaning >> that you should substitute a working username and password on your >> FTP server. If you run Paul's script verbatim, it will fail as you >> posted. >> >> >> ws >> >> -- >> The sea was angry that day, my friends. Like an old man, trying to >> send back soup at a deli.[/color] > > ... > > From where I was standing, I could see directly into the eye of the > great fish. [JERRY: Mammal.] Whatever.[/color]
As if sensing my presence, he let out a great bellow. I said, "Easy, big fella!"
|
"Wadester" wrote in message news:uP6K9W16DHA.1948@TK2MSFTNGP12.phx.gbl...[color=blue] > Al Dunbar [MS-MVP] [alan-no-drub-spam@hotmail.com] posted: >[color=green] > > "Wadester" wrote in message > > news:uRAmubz6DHA.632@TK2MSFTNGP12.phx.gbl...[color=darkred] > >> Mangapathi [anonymous@discussions.microsoft.com] posted: > >> > >>> Thank you for your batch file. Batch file is working fine > >>> till ftp script, but for the below steps, i am getting > >>> error message " Logon failure: unknown user name or > >>> bad password.". > >> > >> Where Paul mentioned "myusername" and "mypassword", he was meaning > >> that you should substitute a working username and password on your > >> FTP server. If you run Paul's script verbatim, it will fail as you > >> posted. > >> > >> > >> ws > >> > >> -- > >> The sea was angry that day, my friends. Like an old man, trying to > >> send back soup at a deli.[/color] > > > > ... > > > > From where I was standing, I could see directly into the eye of the > > great fish. [JERRY: Mammal.] Whatever.[/color] > > As if sensing my presence, he let out a great bellow. I said, "Easy, big > fella!"[/color]
LOL! one of my favourites to. But let's not burden the ng with this any further:
[url]http://www.interleaves.org/~rteeter/seinstry.html[/url]
/Al
|
i mean not for ftp. for remote nt server authentication,how to define in batch file means with syntax. Regards Mangapathi [color=blue] >-----Original Message----- >"Mangapathi" wrote[/color] in message[color=blue] >news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=green] >> Thank you for your batch file. Batch file is working[/color][/color] fine[color=blue][color=green] >> till ftp script, but for the below steps, i am getting >> error message " Logon failure: unknown user name or >> bad password.".[/color] > >Change myusername and mypass to the username and[/color] password you need to login[color=blue] >to the ftp server. >[color=green] >> md \\Servername\MyShare\MyDir >> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >> >> >> For the above commands,i.e. \\servername(Remote server) >> how to mention useranme & password >> for authentication in batch file. Could u help me.[/color] > >Try this. Pick a free drive letter such as X then do this[/color] instead[color=blue] > >net use x: \\Servername\ShareName yourusername[/color] yourpassword[color=blue] >md x:\MyDir >move c:\downloads\*.* x:\MyDir /Y >net use x: /delete > >Where "yourusername" and "yourpassword" are the username[/color] and password you[color=blue] >need to use to access the share. Also set the[/color] permissions on the batch file[color=blue] >so no one who shouldn't see your password can't see it. >[color=green] >> Regards >> Mangapathi >>[color=darkred] >>>-----Original Message----- >>>Lacking more specific information... >>> >>>ftp -s:c:\FTPScript.txt >>>md \\Servername\MyShare\MyDir >>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>> >>>Where FTPScript.txt is something like: >>>o ftp.someserver.com >>>myusername >>>mypass >>>lcd c:\downloads >>>cd /remotedir/somedir >>>prompt >>>bin >>>mget *.* >>>close >>>quit >>> >>>"netadmin@almullagroup.com"[/color] >> wrote in[color=darkred] >>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>> 8:52 AM 2/4/2004 >>>> >>>> Subject: Files transfer automation thru Batch file on[/color] >> W2k[color=darkred] >>>> >>>> Hi !!! >>>> >>>> Anybody can help me to do automation of the below >>>> requirements using simple batch file >>>> >>>> 1) On local pc,getting files from ftp server with >>>> authentication >>>> 2) creation of new sub directory on remote nt server >>>> 3) Transferring downloaded files to remote nt server[/color][/color][/color] sub[color=blue][color=green][color=darkred] >>>> directory >>>> >>>> >>>> >>>> Regards >>>> Mangapathi >>>> >>> >>> >>>. >>>[/color][/color] > > >. >[/color]
|
How to create directory with system monthyear from the batch file. eg.1. monthend-jan04 2. monthend-feb04 Could u help me. [color=blue] >-----Original Message----- >i mean not for ftp. for remote nt server >authentication,how to define in batch file means with >syntax. > >Regards >Mangapathi >[color=green] >>-----Original Message----- >>"Mangapathi" wrote[/color] >in message[color=green] >>news:969401c3eb1d$8f042ba0$a301280a@phx.gbl...[color=darkred] >>> Thank you for your batch file. Batch file is working[/color][/color] >fine[color=green][color=darkred] >>> till ftp script, but for the below steps, i am getting >>> error message " Logon failure: unknown user name or >>> bad password.".[/color] >> >>Change myusername and mypass to the username and[/color] >password you need to login[color=green] >>to the ftp server. >>[color=darkred] >>> md \\Servername\MyShare\MyDir >>> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>> >>> >>> For the above commands,i.e. \\servername(Remote server) >>> how to mention useranme & password >>> for authentication in batch file. Could u help me.[/color] >> >>Try this. Pick a free drive letter such as X then do[/color][/color] this[color=blue] >instead[color=green] >> >>net use x: \\Servername\ShareName yourusername[/color] >yourpassword[color=green] >>md x:\MyDir >>move c:\downloads\*.* x:\MyDir /Y >>net use x: /delete >> >>Where "yourusername" and "yourpassword" are the username[/color] >and password you[color=green] >>need to use to access the share. Also set the[/color] >permissions on the batch file[color=green] >>so no one who shouldn't see your password can't see it. >>[color=darkred] >>> Regards >>> Mangapathi >>> >>>>-----Original Message----- >>>>Lacking more specific information... >>>> >>>>ftp -s:c:\FTPScript.txt >>>>md \\Servername\MyShare\MyDir >>>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>> >>>>Where FTPScript.txt is something like: >>>>o ftp.someserver.com >>>>myusername >>>>mypass >>>>lcd c:\downloads >>>>cd /remotedir/somedir >>>>prompt >>>>bin >>>>mget *.* >>>>close >>>>quit >>>> >>>>"netadmin@almullagroup.com" >>> wrote in >>>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>>> 8:52 AM 2/4/2004 >>>>> >>>>> Subject: Files transfer automation thru Batch file on >>> W2k >>>>> >>>>> Hi !!! >>>>> >>>>> Anybody can help me to do automation of the below >>>>> requirements using simple batch file >>>>> >>>>> 1) On local pc,getting files from ftp server with >>>>> authentication >>>>> 2) creation of new sub directory on remote nt server >>>>> 3) Transferring downloaded files to remote nt server[/color][/color] >sub[color=green][color=darkred] >>>>> directory >>>>> >>>>> >>>>> >>>>> Regards >>>>> Mangapathi >>>>> >>>> >>>> >>>>. >>>>[/color] >> >> >>. >>[/color] >. >[/color]
|
Using the Universal Date Parser, UnivDate.bat, from tip 4835 in the 'Tips & Tricks' at [url]http://www.jsiinc.com[/url], and MMM.bat from tip 6837: In the beginning of you batch file: call Univdate set /a year=10000%yy%%%10000 if %year% GTR 99 set year=%yy:~2,2% call MMM M3 Ten to create a directory: md monthend-%M3%%year% On Sat, 7 Feb 2004 00:56:44 -0800, "Mangapathi" wrote: [color=blue] >How to create directory with system monthyear from the >batch file. >eg.1. monthend-jan04 > 2. monthend-feb04 > >Could u help me. >[color=green] >>-----Original Message----- >>i mean not for ftp. for remote nt server >>authentication,how to define in batch file means with >>syntax. >> >>Regards >>Mangapathi >>[color=darkred] >>>-----Original Message----- >>>"Mangapathi" wrote[/color] >>in message[color=darkred] >>>news:969401c3eb1d$8f042ba0$a301280a@phx.gbl... >>>> Thank you for your batch file. Batch file is working[/color] >>fine[color=darkred] >>>> till ftp script, but for the below steps, i am getting >>>> error message " Logon failure: unknown user name or >>>> bad password.". >>> >>>Change myusername and mypass to the username and[/color] >>password you need to login[color=darkred] >>>to the ftp server. >>> >>>> md \\Servername\MyShare\MyDir >>>> move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>> >>>> >>>> For the above commands,i.e. \\servername(Remote server) >>>> how to mention useranme & password >>>> for authentication in batch file. Could u help me. >>> >>>Try this. Pick a free drive letter such as X then do[/color][/color] >this[color=green] >>instead[color=darkred] >>> >>>net use x: \\Servername\ShareName yourusername[/color] >>yourpassword[color=darkred] >>>md x:\MyDir >>>move c:\downloads\*.* x:\MyDir /Y >>>net use x: /delete >>> >>>Where "yourusername" and "yourpassword" are the username[/color] >>and password you[color=darkred] >>>need to use to access the share. Also set the[/color] >>permissions on the batch file[color=darkred] >>>so no one who shouldn't see your password can't see it. >>> >>>> Regards >>>> Mangapathi >>>> >>>>>-----Original Message----- >>>>>Lacking more specific information... >>>>> >>>>>ftp -s:c:\FTPScript.txt >>>>>md \\Servername\MyShare\MyDir >>>>>move c:\downloads\*.* \\Servername\MyShare\MyDir /Y >>>>> >>>>>Where FTPScript.txt is something like: >>>>>o ftp.someserver.com >>>>>myusername >>>>>mypass >>>>>lcd c:\downloads >>>>>cd /remotedir/somedir >>>>>prompt >>>>>bin >>>>>mget *.* >>>>>close >>>>>quit >>>>> >>>>>"netadmin@almullagroup.com" >>>> wrote in >>>>>message news:9f1601c3eae3$d512f110$a601280a@phx.gbl... >>>>>> 8:52 AM 2/4/2004 >>>>>> >>>>>> Subject: Files transfer automation thru Batch file on >>>> W2k >>>>>> >>>>>> Hi !!! >>>>>> >>>>>> Anybody can help me to do automation of the below >>>>>> requirements using simple batch file >>>>>> >>>>>> 1) On local pc,getting files from ftp server with >>>>>> authentication >>>>>> 2) creation of new sub directory on remote nt server >>>>>> 3) Transferring downloaded files to remote nt server[/color] >>sub[color=darkred] >>>>>> directory >>>>>> >>>>>> >>>>>> >>>>>> Regards >>>>>> Mangapathi >>>>>> >>>>> >>>>> >>>>>. >>>>> >>> >>> >>>. >>>[/color] >>. >>[/color][/color]
Jerold Schulman Windows: General MVP JSI, Inc. [url]http://www.jsiinc.com[/url]
|
"Mangapathi" wrote in message news:c05401c3ed55$6dcd9ae0$a001280a@phx.gbl...[color=blue] >i mean not for ftp. for remote nt server > authentication,how to define in batch file means with > syntax.[/color]
By mounting the remote share as a local drive you are loged in...
net use drive share user password
ftp -s:c:\FTPScript.txt rem Pick a free drive letter such as X net use x: \\Servername\ShareName yourusername yourpassword md x:\MyDir move c:\downloads\*.* x:\MyDir /Y net use x: /delete
Where FTPScript.txt is something like: o ftp.someserver.com myusername mypass lcd c:\downloads cd /remotedir/somedir prompt bin mget *.* close quit
Where "yourusername" and "yourpassword" are the username and password you need to use to access the share. Also set the permissions on the batch file so no one who shouldn't see your password can't see it.
|
|
|
|