Newsgroup: it.comp.lang.visual-basic
Titolo: differenza tra DIR e LS

Nei comandi FTP di Vb6 non riesco a vedere nell'utilizzo la differenza del
comando DIR e LS , in quanto mi danno sempre lo stesso risultato
paragonabile (ovviamente) al classico comando DIR del dos per intenderci. E
allora cosa servirą LS?
Grazie a chi mi chiarisce le idee!!
--------------------------------
Inviato via 
http://usenet.libero.it

a quello che ne so io LS è il dir di linux, ed il risultato è identico...

 per intenderci. E allora cosa servirą LS?
per retrocompatibilita' immagino , come per esempio hanno lasciato il
"?" = print
Mi pare anche che LS sia nata sui sistemi unix ?
-- 
<Gigio2K>
Sito Comune
Nokia -> I.T.H.N. -> 
http://www.ithn.it/
VB -> I.C.L.VB -> 
http://www.it-lang-vb.net/

 Mi pare anche che LS sia nata sui sistemi unix ?
( anche il dos, in sostanza... )
ftp e' un ibrido.
C:\WINNT>ftp
ftp> pwd
Non collegato.
ftp> lcd c:\
Directory locale ora C:\.
ftp>
lcd e' un comando unix
C:\WINNT>ftp
ftp> help
I comandi possono essere abbreviati. I comandi sono:
!               delete          literal         prompt          send
?               debug           ls              put             status
append          dir             mdelete         pwd             trace
ascii           disconnect      mdir            quit            type
bell            get             mget            quote           user
binary          glob            mkdir           recv            verbose
bye             hash            mls             remotehelp
cd              help            mput            rename
close           lcd             open            rmdir
ftp> quit
C:\WINNT>
dir ti da' anche i permessi. con ls devi usare -al
C:\WINNT>ftp
ftp> open 
ftp.microsoft.com
Connesso a 
ftp.microsoft.com
.
220 Microsoft FTP Service
Utente (ftp.microsoft.com:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-This is 
FTP.Microsoft.Com
230 Anonymous user logged in.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
dr-xr-xr-x   1 owner    group               0 Nov 25  2002 bussys
dr-xr-xr-x   1 owner    group               0 May 21  2001 deskapps
dr-xr-xr-x   1 owner    group               0 Apr 20  2001 developr
dr-xr-xr-x   1 owner    group               0 Nov 18  2002 KBHelp
dr-xr-xr-x   1 owner    group               0 Jul  2  2002 MISC
dr-xr-xr-x   1 owner    group               0 Dec 16  2002 MISC1
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 peropsys
dr-xr-xr-x   1 owner    group               0 Jan  2  2001 Products
dr-xr-xr-x   1 owner    group               0 Apr  4 13:54 PSS
dr-xr-xr-x   1 owner    group               0 Sep 21  2000 ResKit
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 Services
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 Softlib
226 Transfer complete.
ftp: 809 bytes received in 0,33secondi 2,45Kbyte/sec)
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bussys
deskapps
developr
KBHelp
MISC
MISC1
peropsys
Products
PSS
ResKit
Services
Softlib
226 Transfer complete.
ftp: 101 bytes received in 3,50secondi 0,03Kbyte/sec)
ftp> ls -al
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
dr-xr-xr-x   1 owner    group               0 Nov 25  2002 bussys
dr-xr-xr-x   1 owner    group               0 May 21  2001 deskapps
dr-xr-xr-x   1 owner    group               0 Apr 20  2001 developr
dr-xr-xr-x   1 owner    group               0 Nov 18  2002 KBHelp
dr-xr-xr-x   1 owner    group               0 Jul  2  2002 MISC
dr-xr-xr-x   1 owner    group               0 Dec 16  2002 MISC1
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 peropsys
dr-xr-xr-x   1 owner    group               0 Jan  2  2001 Products
dr-xr-xr-x   1 owner    group               0 Apr  4 13:54 PSS
dr-xr-xr-x   1 owner    group               0 Sep 21  2000 ResKit
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 Services
dr-xr-xr-x   1 owner    group               0 Feb 25  2000 Softlib
226 Transfer complete.
ftp: 809 bytes received in 0,00secondi 809000,00Kbyte/sec)
ftp> quit

 ftp e' un ibrido.
si la differenza la si nota in pratica nei fserv di mirc per intenderci!


 lcd e' un comando unix
Non è esatto. lcd è un comando ftp, ed infatti:
aidee% lcd
zsh: correct 'lcd' to 'ld' [nyae]? n
zsh: command not found: lcd
Ciao.
-- 
BSD is for UNIX lovers -- linux is for Windows haters.

saggio :)
non avrebbe molto senso un cd locale...
ciao
"H.P.L." <u...@vaila.ble> ha scritto
