[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Exit Window to DOS

Posted on 1998-07-30
1
Medium Priority
?
147 Views
Last Modified: 2010-05-03
How to  exit window to DOS in VB5/Win95
0
Comment
Question by:dorosman
1 Comment
 
LVL 1

Accepted Solution

by:
DQ earned 400 total points
ID: 1467221
dim ret

       Ret = Dir(WinPath + "\Exit to dos.pif")
       If ret = "" Then 'the file could not be found
                MsgBox "Cannot find " + WinPath + "\Exit To Dos.pif" + Chr(10) + Chr(10) + "Please make sure this file is in your Windows directory", vbCritical 'display an error message
            Else                                                'otherwise
                Ret = Shell(WinPath + "\Exit To Dos.pif", 1) 'execute the pif file
            End If
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question