Bat scripting (ftp script)

Toshiba / Satellite a200
September 9, 2010 at 11:00:10
Specs: Microsoft Windows Vista Home Premium, 1.667 GHz / 2045 MB
I am a quite experienced bat scripter (but that's what i say)
but i have a problem
i have made several script files.. let's say gf1.bat, gf2.bat, ftp.txt
the files all are local
i also have a file, online.txt wich is... online.

the local files are to get the online file i have the file
gf1.bat,
folder1

in folder1 there is gf2.bat and ftp.txt(contains ftp script)
i use gf1.bat to activate gf2.bat this works.

BUT i have 1 problem the gf2.bat file wil bring the online.txt file into the folder of gf1.bat
and NOT in folder1 where i want it to be...

I DID try LCD (in ftp.txt) but that doesnt work

Also i'm using windows vista

Thanks for your help and i hope u can understand this weirdo text >.<
Greetz Rediwed

p.s. i include a tree under here:
C:\FOLDER
│ gf1.bat

└───Folder1
ftp.txt
gf2.bat

i want online.txt to be directly downloaded in folder1 not in FOLDER
--- end ---


See More: Bat scripting (ftp script)

Report •

#1
September 9, 2010 at 11:24:36
Why LCD within ftp? Just pushd folder1 before you start the ftp session.


=====================================
Helping others achieve escape felicity

M2


Report •

#2
September 9, 2010 at 12:32:24
Mmm you mean to cd it before i insert the script file..
i dont remember if i tried that..
im now on my mac so that will be a problem for today.
greatfully Thanks!

Report •
Related Solutions


Ask Question