hey guys,
I have a nas with loads of system images on it.
I currently use windows AIK to create and restore them to PC's and Laptop's.
I'd like to write a batch file that starts automaticlly and scans the nas and lists all the available model number sof PC's and Laptops.
example..
on the nas the share is ''iUsers" and within is a sub directory called "Images". In the Images folder is a whole set of other folders containing the images. These folders are named based on the PC/Laptop model number from which they came from.
So I have folders called "p460", "p500", "np-10", "p300 SiS661" and so on.
What I'm stuck on, is writing a script that sees these folders and adds them to the menu as options.
so the menu should look like this..
----------------------------------------------------------------
|
| My Imaging App
|
| Please select a model...
|
| 1 - %first model number% (p460)
| 2 - %second model number% (p500)
| 3 - %third model number% (p300 sis661)
|
|
and so on...
I could hard code them in but I'm always adding new models and I'd like the script to dymanical see new model and add them to the menu list without having to edit it every time a new model is created.
I'm thinking some kind of for loop to create the varaibles needs to the menu??
any ideas??
I have a nas with loads of system images on it.
I currently use windows AIK to create and restore them to PC's and Laptop's.
I'd like to write a batch file that starts automaticlly and scans the nas and lists all the available model number sof PC's and Laptops.
example..
on the nas the share is ''iUsers" and within is a sub directory called "Images". In the Images folder is a whole set of other folders containing the images. These folders are named based on the PC/Laptop model number from which they came from.
So I have folders called "p460", "p500", "np-10", "p300 SiS661" and so on.
What I'm stuck on, is writing a script that sees these folders and adds them to the menu as options.
so the menu should look like this..
----------------------------------------------------------------
|
| My Imaging App
|
| Please select a model...
|
| 1 - %first model number% (p460)
| 2 - %second model number% (p500)
| 3 - %third model number% (p300 sis661)
|
|
and so on...
I could hard code them in but I'm always adding new models and I'd like the script to dymanical see new model and add them to the menu list without having to edit it every time a new model is created.
I'm thinking some kind of for loop to create the varaibles needs to the menu??
any ideas??
Last edited: