How can write the shell function for the dir command?

G

giannis

Suppose we want the dir command* for the directory:

c:\my mp3 files\

and suppose that "path" is a string variable that:

path="c:\my mp3 files\"

How can write the shell function for the dir** command
with this variable ?

* at the Start->Run the dir command is :
command.com /c dir "c:\my mp3 files"

**I dont want the dir() function of access
i want the Shell function !!!
 
V

Van T. Dinh

(Newsgroups trimmed. Please restrict to *relevant* newsgroups only)

Shell "command.com /K dir ""C:\Program Files""",vbMaximizedFocus

or

MyPath$="C:\Program Files"
Shell "command.com /K dir " & MyPath,vbMaximizedFocus

I change to /K flag as /C will execute and then disappear straight away.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top