Search found 6 matches

by codemonkey
09 Dec 2009 09:23
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

that worked, thanks a ton. another quick question. If the folder I want to copy exists I need to ask the person if they want to overwrite it. I was trying to do: echo Folder Exists, would you Like to Overwrite it (Y/N)? choice /c:yn but always get the error: 'choice' is not recognized as an internal...
by codemonkey
08 Dec 2009 14:27
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

I'm actually doing: dir -1 dirfile.txt so I only get the list w/o all the extra stuff. The problem is the actual %FilePath% variable. if it's c:\folder with space\dirfile.txt then it fails to find the file. I've tried putting "" around it, but still fails to find it. I have found a temp so...
by codemonkey
07 Dec 2009 09:10
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

i tweaked yours a bit and got it to work. I did the menu display and the list all in 1 loop. Part of my problem was that folder names can have spaces, so I was using " " around the names, but the For wouldn't work. Once I put ' ' around the folder name it started to work. Is there a way to...
by codemonkey
07 Dec 2009 09:02
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

i have to change folder names, but it looks like the following. my ftp script also does a cd to go down 2 folders, but this is at the root. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. 11-19-09 02:39PM 73 10.0.200.50.url 12-03-09 06:02PM <DIR> Folder1 12-...
by codemonkey
04 Dec 2009 09:39
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

Thanks, It seems to connect, but doesn't actually show me the directories. Will it make a difference if some of the directory names have spaces in them? I did remove the user and password and added -A on the connection: ftp -i -A -s:"%~f0"^|findstr /b "d" I change the 'cd' to my ...
by codemonkey
02 Dec 2009 15:48
Forum: DOS Batch Forum
Topic: FTP list
Replies: 9
Views: 11971

FTP list

Is there a way to run do ftp ls and get the list back into the batch file? I'm calling: :FTPSetup > script.ftp ECHO lcd "%LCL_PATH%"\%folderpath% rem >> script.ftp ECHO cd "%BKUP_PATH%"/%folderpath% >> script.ftp ECHO binary >> script.ftp ECHO ls >> script.ftp ECHO bye pause echo...