Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Can someone help me?
This is the problem:
I have a networkboot disk, when i use the disk for the first time on a computer, then the batchprogram must determine the macaddress, look if a file with the mac address of this computer already exist on a network share. If not exist, call format.bat and create a file with the mac address as name on the network share. If exist, goto unattended installation.
I try several options in batch file but i cannot give de file the name of a variable.Much thanks to the person with a solution.
GRT
Example: (incorrect syntax)
set preload=z::getMac
Get mac adress.
??? nbmac.exe > %macaddress%if not exist "%preload%.\winxp\boot\%macaddress%" goto Format
call unattented.bat
goto end:Format
call format.bat
REM Create file with macaddress name
???????
goto end:end
ECHO EindeAtlantisguard

The easy part is creating the file.
REM Creates 0-byte file with macaddress as name
type nul > %macaddress%The hard part is getting the mac address into a variable. Maybe try
nbmac.exe > result1.dat
And then try example #39 here. Also look at #47.Good Luck
P.S. I highly recommend looking at a more flexible scripting language such as AutoIt.

![]() |
C/C++ Question
|
Error when i trying insta...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |