You are not logged in.
Pages: 1
Hi guys,
i'am new here, i have question.
i trying to make a script that check the pc model and copy the correct filemap.
model = M700 -> copy -> M700 map to c.
i am no programmer got a liddel idea how to work with it.
@echo off
wmic computersystem get model do (
set model=%%i
goto :done
)
:done
if [%model%]==[Test] start "" "%ProgramFiles%\Internet Explorer\iexplore.exe" "https://www.google.nl/?gws_rd=ssl"
endlocal
pause
its getting me a error "Invalid GET Expression"
Hope you guys can help me
Offline
not tested:
for /f "tokens=* delims=" %%a in ('wmic computersystem get model /format:value') do (
for /f "tokens=* delims=" %%# in ("%%a") do set "%%#"
)
echo %model%
Offline
Pages: 1