![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Hello, I am newbie to Windows. (Advanced Linux user). For Windows, I want to write a script that searchs for all executables in computer. Then, I want to run another program ("dumpbin") on each of the result. Finally I want to collate the results. Can someone tell me what is a good language to do this? I looked at VBScript and Windows Script Host. TO me, it looks like these languages do not support directory traversal. I can use PERL. But then, I do no want to install perl. My program will have to run on some hosts which may not have perl. So I want to make miminalistic assumptions. thanks, Sudhakar. |
#3
| |||
| |||
|
| Hello, I am newbie to Windows. (Advanced Linux user). For Windows, I want to write a script that searchs for all executables in computer. Then, I want to run another program ("dumpbin") on each of the result. Finally I want to collate the results. Can someone tell me what is a good language to do this? I looked at VBScript and Windows Script Host. TO me, it looks like these languages do not support directory traversal. I can use PERL. But then, I do no want to install perl. My program will have to run on some hosts which may not have perl. So I want to make miminalistic assumptions. thanks, Sudhakar. |
#4
| |||
| |||
|
| Hello, I am newbie to Windows. (Advanced Linux user). For Windows, I want to write a script that searchs for all executables in computer. Then, I want to run another program ("dumpbin") on each of the result. Finally I want to collate the results. Can someone tell me what is a good language to do this? I looked at VBScript and Windows Script Host. TO me, it looks like these languages do not support directory traversal. I can use PERL. But then, I do no want to install perl. My program will have to run on some hosts which may not have perl. So I want to make miminalistic assumptions. thanks, Sudhakar. |
#5
| |||
| |||
|
|
Hi Sudhakar, The easiest way to do what you're asking is to use Windows shell scripting (what some people call batch files). Anyhow, to do something like this, you could run something like this from the command prompt for /f "tokens=*" %i in ('dir /s /b /a-d c:\*.exe') do call dumpbin.exe "%i" |
|
It could take a while to run since it obviously has to traverse the directory tree. You may also want to check out the forfiles command that's also built into the windows command shell. -- Steve Seguis - MCSE, MVP Windows Server, SCJP SCRIPTMATION, INC. Automating the Enterprise http://www.scriptmation.com "sudhakarg79" <sudhakarg79 (AT) discussions (DOT) microsoft.com> wrote in message news:FF21891F-338A-4E7B-9064-E84C86725806 (AT) microsoft (DOT) com... Hello, I am newbie to Windows. (Advanced Linux user). For Windows, I want to write a script that searchs for all executables in computer. Then, I want to run another program ("dumpbin") on each of the result. Finally I want to collate the results. Can someone tell me what is a good language to do this? I looked at VBScript and Windows Script Host. TO me, it looks like these languages do not support directory traversal. I can use PERL. But then, I do no want to install perl. My program will have to run on some hosts which may not have perl. So I want to make miminalistic assumptions. thanks, Sudhakar. |
#6
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |