ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with cd command

Hi,

I just downloaded ftp with the windows ftp utility from ni.com.
So far every command seems to work well with this vi, except for cd (change directory).
When I enter dir in the ftp command box, I get a list of files and directories.  Then when I enter cd /<directory name> to access a subdirectory I get no error message however then when I enter ls command to list the files I get the exact files from the parent directory.  Can someone help me in determing what am I doing wrong.

Thanks
0 Kudos
Message 1 of 4
(2,707 Views)
Some UNIX boxes require chdir instead of cd.  Try this.  Also, issuing the command cd /<dir name> will start at root (first slash).  If the parent is not root, don't use the slash, like cd <subdir>, or use dot slash (./), like cd./<subdir>.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(2,706 Views)
Sorry, none of your suggestions worked.
However I did find out that if I enter cd /lee then press enter and enter ls, I get the list of the files in the /lee directory.
I don't know why, does anybody.  The following is the exact command all enter in a string control.

cd /lee
ls
0 Kudos
Message 3 of 4
(2,703 Views)
If cd /lee works, the only conclusion I can come to is that the directory you are asking for does not exist.  Check the spelling, look for spaces and/or special characters.  A space at the end of a string is not very noticeable.  I don't think UNIX can handle spaces in file names like "Program Files".  I would like to hang the MS idiot that made this allowable in windows.  Causes nothing but problems.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(2,698 Views)