shell question ?

  • Thread starter Thread starter Mathew
  • Start date Start date
M

Mathew

Hello,

With the Shell function of VBA how can I write the equivalent of :
SubInAcl /output=result.txt /subddirectories c:\

And also I can I do to make "result.txt" be a variable (so I can loop this
cmd on many folder without erase the previous result)

I can only do that Dim RetVal
RetVal = Shell("C:\WINDOWS\SubInAcl.exe", 1)
But it's useless !!!

Can someone help me ?

Cheers
Matthieu
 
I am not sure what the problem is about passing the parameters. Try:

shellline="C:\WINDOWS\SubInAcl.exe /output=* /subddirectories)
shellline=replace(shellline,"*",yourfilename)
RetVal = Shell(shellline, 1)
 

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

Back
Top