ACC: Using the Shell() Function to Run MS-DOS Commands (116384)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q116384
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
This article describes and gives an example of how you can use the Shell()
function in Access Basic to run intrinsic MS-DOS commands, such as Copy,
Dir, Del, and so on.
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information about Access Basic, please
refer to the "Building Applications" manual.
REFERENCES
Microsoft Access "Building Applications," version 2.0, Chapter 5, "Access
Basic Fundamentals," pages 113-132
Microsoft Access "Language Reference," version 2.0, "Shell Function,"
pages 568-569
For more information about the Shell() function, search for "Shell," and
then "Shell Function" using the Microsoft Access Help menu.
For more information about using MS-DOS commands in Access Basic and on how
to add additional functionality to these routines, please see the following
article in the Microsoft Knowledge Base:
99940 ACC: How to Wait for a Shelled Process to Finish
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbhowto kbProgramming KB116384 |
---|
|