Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default running windows system commands in VBA

Hi,
does anyone know whether it's possible and how (if so) to run Windows
system commands in VBA? What I want to do is run "dir *.xls /s/w/b
dir.txt" command and use the list of files created by this command. The
same result (and it'd be even more useful for me) I'd achieve if I could
use some command or function enabling me to run through file system on a
PC searching for *.xls files. I need something like FindFirst and
FindNext known in Pascal or C, or Delphi, or other programming
languages, something what'd give me names of excel files stored on HDD
in different subdirectories together with their full path.
I don't ask for a complete code, just name commands I could use, please.
Thanks a lot in advance! Tomek
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default running windows system commands in VBA

Hi again,
I've found all the information I need in "Files in a dir" thread. I don't
know how I could miss it when I searched for tips in all messages.....
Sorry for unnecessary posting...


"tomek" wrote in message
...
Hi,
does anyone know whether it's possible and how (if so) to run Windows
system commands in VBA? What I want to do is run "dir *.xls /s/w/b
dir.txt" command and use the list of files created by this command. The




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
background commands running in Excel? AnalystMark Excel Discussion (Misc queries) 1 January 26th 10 05:42 PM
windows media player commands teepee[_3_] Excel Discussion (Misc queries) 5 November 1st 08 11:58 PM
how can i decrypt the Excel file after reinstall windows system? db_mobile[_2_] Excel Discussion (Misc queries) 0 June 8th 07 01:40 AM
how can i decrypt the Excel file after reinstall windows system? db_mobile Excel Discussion (Misc queries) 0 June 6th 07 03:36 AM
i have two windows xp running on my pc and seem to con flict with custer Excel Discussion (Misc queries) 1 November 21st 05 09:30 PM


All times are GMT +1. The time now is 05:19 PM.

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"