Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How to get a DriveName without using the FileSystemObjects?

Hi all,

for n upcoming rollout, i have a problem .

An Excel-file is to be distributed to various servers.
On all servers exists a special folder (\datafolder eg) with a fixed
name.The distributed file should include
an external link to those folders and get data from flatfiles (identically
named) located on them. So for building the
link, name and folder of the local source file are identical, fixed and
sure.

The problem for building the external link is:
the server names and the drive names do differ. How can i get them ?

Perhaps it is possible to extraxt from ActiveWorkbook.Path, but i cannot
find how.

It´s not possible to use the methods of the FileScripting-Library
(FileSystemObject), since it is not granted
that this library is available.

Thanks for any (desperately needed) help in advance!

Kai
Cologne Germany



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How to get a DriveName without using the FileSystemObjects?

Are you interested in the letter of the drive ? like E: or similar ? You
could just do

driveLetter = Left$(ActiveWorkbook.Path, 1)

but I may be missing part of your point.

--
Regards,

Juan Pablo González

"Kai Uwe Schmidt" wrote in message
...
Hi all,

for n upcoming rollout, i have a problem .

An Excel-file is to be distributed to various servers.
On all servers exists a special folder (\datafolder eg) with a fixed
name.The distributed file should include
an external link to those folders and get data from flatfiles (identically
named) located on them. So for building the
link, name and folder of the local source file are identical, fixed and
sure.

The problem for building the external link is:
the server names and the drive names do differ. How can i get them ?

Perhaps it is possible to extraxt from ActiveWorkbook.Path, but i cannot
find how.

It´s not possible to use the methods of the FileScripting-Library
(FileSystemObject), since it is not granted
that this library is available.

Thanks for any (desperately needed) help in advance!

Kai
Cologne Germany





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"