ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run a MSDos Command from Excel (https://www.excelbanter.com/excel-programming/382744-run-msdos-command-excel.html)

FrodeOlsen

Run a MSDos Command from Excel
 
I have created a very simple DIR batch file that list files in a given
folder w/subfolders to a TXT file. This I'd like to run by clicking a
object (menu button). Like if one where toassign a Macto to a image.

The path to the Batch file is looooong and there are looong folder
names..

Any ideas, tips or comments??


Smallweed

Run a MSDos Command from Excel
 
Shell("path") is the VBA command to run an external program.



"FrodeOlsen" wrote:

I have created a very simple DIR batch file that list files in a given
folder w/subfolders to a TXT file. This I'd like to run by clicking a
object (menu button). Like if one where toassign a Macto to a image.

The path to the Batch file is looooong and there are looong folder
names..

Any ideas, tips or comments??




All times are GMT +1. The time now is 12:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com