Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default shell question ?

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default shell question ?

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)


"Mathew" wrote:

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



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
Shell Stuart[_20_] Excel Programming 1 February 17th 05 01:50 AM
Shell and Command Prompt Question Fred*** Excel Programming 2 October 21st 04 01:51 AM
VBE COM Add-in Shell R Avery Excel Programming 1 August 12th 04 02:55 PM
Shell to MSAccess Charles Excel Programming 0 February 18th 04 02:50 PM
Shell Joseph[_12_] Excel Programming 1 February 1st 04 04:33 AM


All times are GMT +1. The time now is 10:05 AM.

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"