Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows 98 Networking

C: or C:\

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2004, 11:06 AM
Default C: or C:\



Hi,

Is C: a valid path ?

I know

C:\ is a valid path... that's the root.

Where can I find information about if C: is valid or not...

I would like to see some microsoft documentation or so that says

C: is not a valid path... something like that...

Since if I am not mistaking some tools allowed it to be used... like

copy a: c:

I am not sure if that would work... I think it does work.

Yup... it tries to copy to current directory.

Bye,
Skybuck.




Skybuck Flying
Reply With Quote
  #2  
Old 06-23-2004, 11:18 AM
David Candy
Guest
 
Posts: n/a
Default Re: or C:\

C: is different to C:\. C:\ is a path C: isn't, it's a drive specification. C: refers to whatever the current default directory is for that drive (except for drive utilities of course). There is a current drive and all drives have a current directory. Your current directory is the default directory on the default drive.

Type cmd

Type
cd c:\windows

Type
d: (means change drive in this context - this is a command rather than a drive specification meaning change default drive to the specified drive - pretty dumb but we're all used to it)

Type
dir c:

and you'll get a listing of windows.
--
----------------------------------------------------------
http://www.counterpunch.org/bageant06132004.html
"Skybuck Flying" <(E-Mail Removed)> wrote in message news:cbbkh5$86d$(E-Mail Removed)...
> Hi,
>
> Is C: a valid path ?
>
> I know
>
> C:\ is a valid path... that's the root.
>
> Where can I find information about if C: is valid or not...
>
> I would like to see some microsoft documentation or so that says
>
> C: is not a valid path... something like that...
>
> Since if I am not mistaking some tools allowed it to be used... like
>
> copy a: c:
>
> I am not sure if that would work... I think it does work.
>
> Yup... it tries to copy to current directory.
>
> Bye,
> Skybuck.
>
>

Reply With Quote
  #3  
Old 06-23-2004, 08:52 PM
Skybuck Flying
Guest
 
Posts: n/a
Default Re: or C:\

Somebody else said this only applies to the command prompt.

Is that true.... ? or does it apply to the rest of windows as well ?

He said every process has only one current folder.

The command prompt/shell adds it's own notition of multiple current
directories per drive......

Bye,
Skybuck.

"David Candy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
C: is different to C:\. C:\ is a path C: isn't, it's a drive specification.
C: refers to whatever the current default directory is for that drive
(except for drive utilities of course). There is a current drive and all
drives have a current directory. Your current directory is the default
directory on the default drive.

Type cmd

Type
cd c:\windows

Type
d: (means change drive in this context - this is a command rather
than a drive specification meaning change default drive to the specified
drive - pretty dumb but we're all used to it)

Type
dir c:

and you'll get a listing of windows.
--
----------------------------------------------------------
http://www.counterpunch.org/bageant06132004.html
"Skybuck Flying" <(E-Mail Removed)> wrote in message
news:cbbkh5$86d$(E-Mail Removed)...
> Hi,
>
> Is C: a valid path ?
>
> I know
>
> C:\ is a valid path... that's the root.
>
> Where can I find information about if C: is valid or not...
>
> I would like to see some microsoft documentation or so that says
>
> C: is not a valid path... something like that...
>
> Since if I am not mistaking some tools allowed it to be used... like
>
> copy a: c:
>
> I am not sure if that would work... I think it does work.
>
> Yup... it tries to copy to current directory.
>
> Bye,
> Skybuck.
>
>



Reply With Quote
  #4  
Old 06-24-2004, 03:32 AM
David Candy
Guest
 
Posts: n/a
Default Re: or C:\

I don't think so as programming languages allow one to get the current directory for any drive (and the current drive if not specified).

CurDir Function


Returns a Variant (String) representing the current path.

Syntax

CurDir[(drive)]

The optional drive argument is a string expression that specifies an existing drive. If no drive is specified or if drive is a zero-length string (""), CurDir returns the path for the current drive. On the Macintosh, CurDir ignores any drive specified and simply returns the path for the current drive.


--
----------------------------------------------------------
http://www.counterpunch.org/bageant06132004.html
"Skybuck Flying" <(E-Mail Removed)> wrote in message news:cbcmrh$lba$(E-Mail Removed)...
> Somebody else said this only applies to the command prompt.
>
> Is that true.... ? or does it apply to the rest of windows as well ?
>
> He said every process has only one current folder.
>
> The command prompt/shell adds it's own notition of multiple current
> directories per drive......
>
> Bye,
> Skybuck.
>
> "David Candy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> C: is different to C:\. C:\ is a path C: isn't, it's a drive specification.
> C: refers to whatever the current default directory is for that drive
> (except for drive utilities of course). There is a current drive and all
> drives have a current directory. Your current directory is the default
> directory on the default drive.
>
> Type cmd
>
> Type
> cd c:\windows
>
> Type
> d: (means change drive in this context - this is a command rather
> than a drive specification meaning change default drive to the specified
> drive - pretty dumb but we're all used to it)
>
> Type
> dir c:
>
> and you'll get a listing of windows.
> --
> ----------------------------------------------------------
> http://www.counterpunch.org/bageant06132004.html
> "Skybuck Flying" <(E-Mail Removed)> wrote in message
> news:cbbkh5$86d$(E-Mail Removed)...
> > Hi,
> >
> > Is C: a valid path ?
> >
> > I know
> >
> > C:\ is a valid path... that's the root.
> >
> > Where can I find information about if C: is valid or not...
> >
> > I would like to see some microsoft documentation or so that says
> >
> > C: is not a valid path... something like that...
> >
> > Since if I am not mistaking some tools allowed it to be used... like
> >
> > copy a: c:
> >
> > I am not sure if that would work... I think it does work.
> >
> > Yup... it tries to copy to current directory.
> >
> > Bye,
> > Skybuck.
> >
> >

>
>

Reply With Quote
  #5  
Old 03-16-2005, 03:22 PM
Jussi Jumppanen
Guest
 
Posts: n/a
Default Re: or C:\

Skybuck Flying wrote:

> Somebody else said this only applies to the command prompt.


The command prompt is nothing more than a Win32 console application.

> Is that true.... ? or does it apply to the rest of windows as well ?


As far as Windows is concerned all windows applications are the
same.

> He said every process has only one current folder.


This is correct.

For example if you write a program to change to a particular
directory then exit, if you run this program from the command
prompt in any other directory the program will change to the
new directory then exit, but this has no effect on the current
directory of the command prompt.

> The command prompt/shell adds it's own notition of multiple
> current directories per drive......


The program has a current drive and each drive has a
current directory.

The program can change the drive using setdisk function
and change the current directory of the current drive
using chdir.

All the command prompt does is map user friendly commands
to these same low level functions.

Jussi Jumppanen
Author of: Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
"The C/C++, Java, HTML, FTP, Python, PHP, Perl programmer's editor"
http://www.zeusedit.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.