Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Network path

 [1/7] from: riusa:email:it at: 19-Apr-2002 13:12


I was searching in mailing-list how to manage network-shared dirs (e.g.: \\computername\dir\file.ext). The answer was the following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Tue, Mar 05, 2002 at 04:55:11PM +0100, READYSOFT, H.Knoblauch, wrote:
> Dear List, > > how can I read such a file \\computername\path\file.ext ?
%/computername/path/file.ext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ok... it functions. But why does not function the following code? change-dir %/computername/path/ --Alessandro-- -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Prova il brivido della F1, con le leve Ferrari e il volante Thrustmaster! Ideale per giocare in simulazione sportiva con giochi di corse automobilistiche e rally Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=361&d=19-4

 [2/7] from: brett:codeconscious at: 19-Apr-2002 22:39


I wouldn't expect it to work in windows console / dos box either. For example, I tried to do CD in a dos box (console session under NT) and got this message: ... is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory. Maybe change-dir depends on an OS current directory. Brett. ----- Original Message ----- From: <[riusa--email--it]> To: "REBOL" <[rebol-list--rebol--com]> Sent: Friday, April 19, 2002 9:12 PM Subject: [REBOL] Network path I was searching in mailing-list how to manage network-shared dirs (e.g.: \\computername\dir\file.ext). The answer was the following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Tue, Mar 05, 2002 at 04:55:11PM +0100, READYSOFT, H.Knoblauch, wrote:
> Dear List, > > how can I read such a file \\computername\path\file.ext ?
%/computername/path/file.ext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ok... it functions. But why does not function the following code? change-dir %/computername/path/ --Alessandro-- -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Prova il brivido della F1, con le leve Ferrari e il volante Thrustmaster! Ideale per giocare in simulazione sportiva con giochi di corse automobilistiche e rally Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=361&d=19-4

 [3/7] from: holger:rebol at: 19-Apr-2002 7:36


On Fri, Apr 19, 2002 at 01:12:46PM +0200, [riusa--email--it] wrote:
> Ok... it functions. But why does not function the following code? > > change-dir %/computername/path/
It is the result of a bug in the Windows run-time system. Windows basically does not allow an application to query the properties of the first component of /path/ on a remote directory, so REBOL cannot verify that it is a valid directory. We will try to find some workaround for this in the next version. -- Holger Kruse [kruse--nordicglobal--com]

 [4/7] from: riusa:email:it at: 20-Apr-2002 16:41


Thank you for your explanation! bye --Alessandro-- -----Messaggio originale----- Da: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Per conto di Holger Kruse Inviato: Friday, April 19, 2002 4:36 PM A: [rebol-list--rebol--com] Cc: [holger--rebol--net] Oggetto: [REBOL] Re: Network path On Fri, Apr 19, 2002 at 01:12:46PM +0200, [riusa--email--it] wrote:
> Ok... it functions. But why does not function the following code? > > change-dir %/computername/path/
It is the result of a bug in the Windows run-time system. Windows basically does not allow an application to query the properties of the first component of /path/ on a remote directory, so REBOL cannot verify that it is a valid directory. We will try to find some workaround for this in the next version. -- Holger Kruse [kruse--nordicglobal--com] -- To unsubscribe from this list, please send an email to [rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes. -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Paura delle Eurobanconote false? Clicca qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=374&d=20-4

 [5/7] from: riusa::email::it at: 20-Apr-2002 16:37


mhm... I think you are right. Infact, in windows, CD command cannot change dir directly from a drive to another one (but change directly in "hide" mode...): make this test: C: > CD D:\TEMP C: > D: D:\temp > as you can see, to change a drive, in windows I must type the drive letter (without CD command) but CD command functioned! Infact, after I run CD command I don't see anything, but if I type drive letter, I discover that my current directory is the directory given to CD command! Sometimes DOS & Windows are very funny.... bye! --Alessandro-- -----Messaggio originale----- Da: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Per conto di Brett Handley Inviato: Friday, April 19, 2002 2:40 PM A: [rebol-list--rebol--com] Oggetto: [REBOL] Re: Network path I wouldn't expect it to work in windows console / dos box either. For example, I tried to do CD in a dos box (console session under NT) and got this message: ... is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory. Maybe change-dir depends on an OS current directory. Brett. ----- Original Message ----- From: <[riusa--email--it]> To: "REBOL" <[rebol-list--rebol--com]> Sent: Friday, April 19, 2002 9:12 PM Subject: [REBOL] Network path I was searching in mailing-list how to manage network-shared dirs (e.g.: \\computername\dir\file.ext). The answer was the following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Tue, Mar 05, 2002 at 04:55:11PM +0100, READYSOFT, H.Knoblauch, wrote:
> Dear List, > > how can I read such a file \\computername\path\file.ext ?
%/computername/path/file.ext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ok... it functions. But why does not function the following code? change-dir %/computername/path/ --Alessandro-- -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Prova il brivido della F1, con le leve Ferrari e il volante Thrustmaster! Ideale per giocare in simulazione sportiva con giochi di corse automobilistiche e rally Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=361&d=19-4 -- To unsubscribe from this list, please send an email to [rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes. -- To unsubscribe from this list, please send an email to [rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes. -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Creati una vera e propria palestra in casa tua con una delle Panche multifunzione di Oliviero.it. Allena tutte le parti del corpo con esercizi completi ed efficaci e diventa trainer di te stesso! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=419&d=20-4

 [6/7] from: james:mustard at: 21-Apr-2002 16:51


Alessandro Manotti wrote
> mhm... I think you are right. Infact, in windows, CD command cannot change > dir directly from a drive to another one (but change directly in "hide" > mode...):
short answer - windows CAN change directly but you need to use the /d parameter as in: cd /d drive:\path
> as you can see, to change a drive, in windows I must type the drive letter > (without CD command) but CD command functioned! Infact, after I run CD > command I don't see anything, but if I type drive letter, I discover that
my
> current directory is the directory given to CD command! > > Sometimes DOS & Windows are very funny....
If you type cd /? you will see why Windows behaves like this - Windows has the ability to hold a current directory for each drive. In the pre-GUI world this was often seen as advantageous for quickly switching file locations and doing various file ops with the drive: parameter. Of course no one uses the commandline in Windows any more ... do they? :-) /--------------------------------------------------------------------------- -- C:\>cd /? Displays the name of or changes the current directory. CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..] .. Specifies that you want to change to the parent directory. Type CD drive: to display the current directory in the specified drive. Type CD without parameters to display the current drive and directory. Use the /D switch to change current drive in addition to changing current directory for a drive. If Command Extensions are enabled CHDIR changes as follows: The current directory string is converted to use the same case as the on disk names. So CD C:\TEMP would actually set the current directory to C:\Temp if that is the case on disk. CHDIR command does not treat spaces as delimiters, so it is possible to CD into a subdirectory name that contains a space without surrounding the name with quotes. For example: cd \winnt\profiles\username\programs\start menu is the same as: cd "\winnt\profiles\username\programs\start menu" which is what you would have to type if extensions were disabled. /----------------------------------------------------------------------- James.

 [7/7] from: riusa:email:it at: 21-Apr-2002 10:54


good switch! I used DOS from many years but I never saw that switch! (my inattention!). I tried "cd/?" and the switch was there! thank you! bye --Alessandro-- -----Messaggio originale----- Da: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Per conto di James Marsden Inviato: Sunday, April 21, 2002 6:51 AM A: [rebol-list--rebol--com] Oggetto: [REBOL] Re: Network path Alessandro Manotti wrote
> mhm... I think you are right. Infact, in windows, CD command cannot change > dir directly from a drive to another one (but change directly in "hide" > mode...):
short answer - windows CAN change directly but you need to use the /d parameter as in: cd /d drive:\path
> as you can see, to change a drive, in windows I must type the drive letter > (without CD command) but CD command functioned! Infact, after I run CD > command I don't see anything, but if I type drive letter, I discover that
my
> current directory is the directory given to CD command! > > Sometimes DOS & Windows are very funny....
If you type cd /? you will see why Windows behaves like this - Windows has the ability to hold a current directory for each drive. In the pre-GUI world this was often seen as advantageous for quickly switching file locations and doing various file ops with the drive: parameter. Of course no one uses the commandline in Windows any more ... do they? :-) /--------------------------------------------------------------------------- -- C:\>cd /? Displays the name of or changes the current directory. CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..] .. Specifies that you want to change to the parent directory. Type CD drive: to display the current directory in the specified drive. Type CD without parameters to display the current drive and directory. Use the /D switch to change current drive in addition to changing current directory for a drive. If Command Extensions are enabled CHDIR changes as follows: The current directory string is converted to use the same case as the on disk names. So CD C:\TEMP would actually set the current directory to C:\Temp if that is the case on disk. CHDIR command does not treat spaces as delimiters, so it is possible to CD into a subdirectory name that contains a space without surrounding the name with quotes. For example: cd \winnt\profiles\username\programs\start menu is the same as: cd "\winnt\profiles\username\programs\start menu" which is what you would have to type if extensions were disabled. /----------------------------------------------------------------------- James. -- To unsubscribe from this list, please send an email to [rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes. -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Sai cosa è una "lampada di sale"? scoprilo qui: Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=373&d=21-4