![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 1
Rep Power: 0
![]() |
Batch file - automate process
Hi,
I need to do the following and would be grateful if anyone can point me in the right way... i need to call a progam and supply the source file to it..... for e.g LogConverter.exe C:\Retrieved Logs\123.dat i need a script to do it.....but the problem is that the name of the file is time dependant and every filename is unique......also the program won't accept wildcards ....so I can't use the following: LogConverter.exe C:\Retrieved Logs\*.dat is there any way i can pass the names of all the files in the directory one by one to the log converter program...... Any help will be really appreciated..... Thanks |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 482
Rep Power: 3
![]() |
Try with a for loop and a variable for the file name if every file name is a number.
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
The easiest way to go about this IMO is to write a C# console program which allows you to choose a directory and create and object for each file in that directory. Then you can pass the object name to a function and create a new thread for the LogConverter.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|