Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 02-25-2008, 02:00 PM
OfficeUser
Newsgroup Contributor
 
Posts: n/a
Windows Explorer Shows Names In Front Of Drive Letters

When Windows Explorer is opened, the following appears under My Computer:
IBM_Preload (C:)
My Book(F:)

What is IBM_Preload and My Book? Where do they come from? I have never seen
this before.

If I program Excel to open the file C:\Customers\Contacts.xls or
F:\Sales.xls, will they open since I did not hardcode IBM_Preload or My Book
into the path?

Thanks!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 02-25-2008, 02:00 PM
  #2 (permalink)  
Old 02-25-2008, 02:20 PM
Malke
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

OfficeUser wrote:

> When Windows Explorer is opened, the following appears under My Computer:
> IBM_Preload (C:)
> My Book(F:)
>
> What is IBM_Preload and My Book? Where do they come from? I have never
> seen this before.
>
> If I program Excel to open the file C:\Customers\Contacts.xls or
> F:\Sales.xls, will they open since I did not hardcode IBM_Preload or My
> Book into the path?


Those are the volume names. All IBM Thinkpads (and possibly other IBM
Windows computers) name the C:\ drive IBM_Preload.

You should never hardcode volume names because in all probability the volume
names will be different on most computers. Then when your code is run it
will fail.

Perhaps I'm misunderstanding what you mean by "program", however. If you're
just talking about opening files living on C:\ or F:\ then you're fine. The
volume name has nothing to do with the location (C: or F:).

Malke
--
MS-MVP
Elephant Boy Computers
www.elephantboycomputers.com
Don't Panic!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 02-25-2008, 03:50 PM
OfficeUser
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

Thanks, Malke, for the quick response and for the explanation!

So, the following line of code opens the Stock Inventory.xls workbook in
Excel.
Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
Will that line of code succed or fail by not putting the IBM_Preload volume
name in front of C?


"Malke" <malke@invalid.invalid> wrote in message
news:uPGJdw$dIHA.5348@TK2MSFTNGP03.phx.gbl...
> OfficeUser wrote:
>
>> When Windows Explorer is opened, the following appears under My Computer:
>> IBM_Preload (C:)
>> My Book(F:)
>>
>> What is IBM_Preload and My Book? Where do they come from? I have never
>> seen this before.
>>
>> If I program Excel to open the file C:\Customers\Contacts.xls or
>> F:\Sales.xls, will they open since I did not hardcode IBM_Preload or My
>> Book into the path?

>
> Those are the volume names. All IBM Thinkpads (and possibly other IBM
> Windows computers) name the C:\ drive IBM_Preload.
>
> You should never hardcode volume names because in all probability the
> volume
> names will be different on most computers. Then when your code is run it
> will fail.
>
> Perhaps I'm misunderstanding what you mean by "program", however. If
> you're
> just talking about opening files living on C:\ or F:\ then you're fine.
> The
> volume name has nothing to do with the location (C: or F:).
>
> Malke
> --
> MS-MVP
> Elephant Boy Computers
> www.elephantboycomputers.com
> Don't Panic!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 02-25-2008, 04:50 PM
Malke
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

OfficeUser wrote:

> Thanks, Malke, for the quick response and for the explanation!
>
> So, the following line of code opens the Stock Inventory.xls workbook in
> Excel.
> Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
> Will that line of code succed or fail by not putting the IBM_Preload
> volume name in front of C?


Once more time: the name of the volume/drive has nothing to do with its real
location. It's a human identification, not a machine identification.

Are you talking about writing a program in some programming language? If so,
you need to use the correct variables for that language. For example, in a
simple script you might use %systemdrive% instead of C:\. You should check
with a programmers' newsgroup for whatever programming language you're
writing in. This isn't a Windows XP issue.

Malke
--
MS-MVP
Elephant Boy Computers
www.elephantboycomputers.com
Don't Panic!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 02-26-2008, 07:20 AM
OfficeUser
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

Malke, you missed the point of my question!

When I write the VBA code in Excel to open the workbook, Stock
Inventory.xls, which of the below is correct?
Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
Or
Workbooks.Open("IBM_Preload (C:)\Stock Inventory\Stock Inventory.xls")

Note that the second line of code includes the Volume name.

Thanks!



"Malke" <malke@invalid.invalid> wrote in message
news:e7WsREBeIHA.4704@TK2MSFTNGP03.phx.gbl...
> OfficeUser wrote:
>
>> Thanks, Malke, for the quick response and for the explanation!
>>
>> So, the following line of code opens the Stock Inventory.xls workbook in
>> Excel.
>> Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
>> Will that line of code succed or fail by not putting the IBM_Preload
>> volume name in front of C?

>
> Once more time: the name of the volume/drive has nothing to do with its
> real
> location. It's a human identification, not a machine identification.
>
> Are you talking about writing a program in some programming language? If
> so,
> you need to use the correct variables for that language. For example, in a
> simple script you might use %systemdrive% instead of C:\. You should check
> with a programmers' newsgroup for whatever programming language you're
> writing in. This isn't a Windows XP issue.
>
> Malke
> --
> MS-MVP
> Elephant Boy Computers
> www.elephantboycomputers.com
> Don't Panic!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 02-26-2008, 08:00 AM
throwitout
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

On Feb 26, 11:18 am, "OfficeUser" <u...@Invalid.com> wrote:

> > Once more time: the name of the volume/drive has nothing to do with its
> > real
> > location. It's a human identification, not a machine identification.

>
> > Are you talking about writing a program in some programming language? If
> > so,
> > you need to use the correct variables for that language. For example, in a
> > simple script you might use %systemdrive% instead of C:\. You should check
> > with a programmers' newsgroup for whatever programming language you're
> > writing in. This isn't a Windows XP issue.


> Malke, you missed the point of my question!
>
> When I write the VBA code in Excel to open the workbook, Stock
> Inventory.xls, which of the below is correct?
> Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
> Or
> Workbooks.Open("IBM_Preload (C:)\Stock Inventory\Stock Inventory.xls")
>
> Note that the second line of code includes the Volume name.
>
> Thanks!


You missed the answer to the question. The "IBM_Preload" is only for
human purposes, the machine doesn't actually care what the volume name
is (since it can also change!)

So your first option is correct.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 02-26-2008, 08:00 AM
Malke
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

OfficeUser wrote:

> Malke, you missed the point of my question!
>
> When I write the VBA code in Excel to open the workbook, Stock
> Inventory.xls, which of the below is correct?
> Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
> Or
> Workbooks.Open("IBM_Preload (C:)\Stock Inventory\Stock Inventory.xls")
>
> Note that the second line of code includes the Volume name.


No, I didn't miss your point. I told you that you should post your question
in a newsgroup devoted to whatever programming language you are using. That
apparently is Visual Basic. Find a Visual Basic group in the list below and
post your question there:

http://aumha.org/nntp.htm - list of MS newsgroups

I'm not a programmer. This is a programming question. EOT for me because I
don't have anything further to add.

Malke
--
MS-MVP
Elephant Boy Computers
www.elephantboycomputers.com
Don't Panic!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 02-26-2008, 10:20 AM
PD43
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

"OfficeUser" <user@Invalid.com> wrote:

>Malke, you missed the point of my question!


HIS point - a valid one - was to ask your question elsewhere, not
here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 02-26-2008, 01:00 PM
OfficeUser
Newsgroup Contributor
 
Posts: n/a
Re: Windows Explorer Shows Names In Front Of Drive Letters

<So your first option is correct.>

Thank you! That's the answer I was looking for.



"throwitout" <throwitout@dodgeit.com> wrote in message
news:cb58260e-243d-4886-804b-47b42bd99f99@h25g2000hsf.googlegroups.com...
> On Feb 26, 11:18 am, "OfficeUser" <u...@Invalid.com> wrote:
>
>> > Once more time: the name of the volume/drive has nothing to do with its
>> > real
>> > location. It's a human identification, not a machine identification.

>>
>> > Are you talking about writing a program in some programming language?
>> > If
>> > so,
>> > you need to use the correct variables for that language. For example,
>> > in a
>> > simple script you might use %systemdrive% instead of C:\. You should
>> > check
>> > with a programmers' newsgroup for whatever programming language you're
>> > writing in. This isn't a Windows XP issue.

>
>> Malke, you missed the point of my question!
>>
>> When I write the VBA code in Excel to open the workbook, Stock
>> Inventory.xls, which of the below is correct?
>> Workbooks.Open("C:\Stock Inventory\Stock Inventory.xls")
>> Or
>> Workbooks.Open("IBM_Preload (C:)\Stock Inventory\Stock Inventory.xls")
>>
>> Note that the second line of code includes the Volume name.
>>
>> Thanks!

>
> You missed the answer to the question. The "IBM_Preload" is only for
> human purposes, the machine doesn't actually care what the volume name
> is (since it can also change!)
>
> So your first option is correct.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
puting drive letters first in windows explorer Van Windows Vista 3 11-04-2007 02:40 PM
File explorer doesn't show drive letters for certain folders eric_mccowan Windows XP 0 09-19-2007 02:50 AM
File explorer doesn't show drive letters for certain folders eric_mccowan Windows XP 0 09-19-2007 02:50 AM
New hard drive shows up in device manager but not windows explorer Lakesidezx Vista Hardware 8 07-19-2007 07:40 PM
DVD-RW Drive Shows up as DVD-RW and CD-Drive in Windows Explorer STLCardsFan Windows XP 3 03-22-2007 09:30 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 03:05 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0