Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default FIND CURRENT DIRECTORY

Find Current Directory:

On a CD I have 4 files. AUTORUN.INF, EXCEL1.VBS, SETUP.ICO, and
INSTALL.XLS. The code is shown below.
When I insert the CD, I want the CD to automatically open and then
automatically open INSTALL.XLS.
When I insert the CD, this error message appears: €˜Install.xls could not be
found.
Question: How do I show in the code that the Install.xls file is on the CD?
What code do I need to add to EXCEL1.VBS to show the CD Current Directory ?
See Below:

1. AUTORUN.INF
[AutoRun]
OPEN=EXCEL1.VBS
OPEN=SETUP.ICO


2. EXCEL1.VBS
Dim objXL
Set objXL = WScript.CreateObject("Excel.Application")
objXL.Visible = TRUE
objXL.Workbooks.open("Install.xls")


3. SETUP.ICO

4. INSTALL.XLS

--
Larry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default FIND CURRENT DIRECTORY

Hi,

What code do I need to add to EXCEL1.VBS to show the CD Current

Directory ?

Try: Application.Path (works in vba)

Regards,
Gijs

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
open file in current directory Tomo Excel Worksheet Functions 1 January 12th 08 12:04 AM
current directory Ross[_2_] Excel Discussion (Misc queries) 1 April 2nd 07 10:00 PM
Current Directory Mallasch Excel Discussion (Misc queries) 4 September 15th 06 03:05 AM
changing current directory to that of the current open file unnameable Excel Programming 2 May 19th 04 11:14 AM
Set The Directory to the Current WB Path Richy Excel Programming 2 February 29th 04 06:54 PM


All times are GMT +1. The time now is 11:33 PM.

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"