ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: ftp-win script with a space in the path of the LCD command  (Read 4925 times)

gmish

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
ftp-win script with a space in the path of the LCD command
« on: October 01, 2008, 11:10:46 am »

I have to create a script in ftp-win with an LCD command that includes a space in the path.  How do I do this?

Right now I have:

OPEN 192.168.132.10 root dx100
LCD "T:\edata\wal-mart\walmart as2\ansi\850\5010"
CD /appl/twins/edi/walmart
BINARY
PUT mail_in.srt mail_in.srt
QUIT
CLOSE

But the quotes don't seem to work on the LCD command.  If I take them out it still doesn't work because of the space in the folder name "walmart as2".  I can not change the directory name for reasons that are complicated to describe here, but how can I do the LCD command and leave the space in the path?

Thank you.
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: ftp-win script with a space in the path of the LCD command
« Reply #1 on: October 02, 2008, 10:58:29 am »

Try using 8+3 path names. do a:
dir /x
of an existing directory to see the 8+3 name. I get:
WALMAR~1
for
walmart as2
« Last Edit: October 02, 2008, 12:07:29 pm by Bob »
Logged

gmish

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
Re: ftp-win script with a space in the path of the LCD command
« Reply #2 on: October 02, 2008, 11:11:55 am »

Yes, I had done that, but within DOS, when I do a dir/w or dir -x it shows the full name of the folder and not the 8+3 name.

Is there no way to have a space in a folder name and still have the folder in a path with an LCD command?  Seems like a huge drawback with the scripting, no?
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re: ftp-win script with a space in the path of the LCD command
« Reply #3 on: October 02, 2008, 12:11:12 pm »

Yes, I had done that, but within DOS, when I do a dir/w or dir -x it shows the full name of the folder and not the 8+3 name.
Sorry it was dir /x NOT dir -x
I corrected the message above.
It works fine. I just tested it on windows 2k and xp.
Quote
Is there no way to have a space in a folder name and still have the folder in a path with an LCD command?  Seems like a huge drawback with the scripting, no?
Sorry, ftpwin is not undergoing active development. It's meant to be replaced by FTP Pro (which unfortunately doesn't have scripting).
Logged
 

Page created in 0.017 seconds with 20 queries.