-
Hi I´m trying to create a Snapin pack using this scipt but when I test it I recive an error in Line 2 Character 5; Code: 800A03F2
I’ve no experience scripting and not sure were the failure is:
This is what I have in my .VBS fileSet csv="C:\Program Files (x86)\FOG\tmp\IPSet2301\ComputerList.csv" for /f "skip=1 delims=, tokens=1-6" %%a in (%csv%) do ( if /I "%computername%"=="%%a" ( netsh int ipv4 set address "Wi-Fi" static %%b %%c %%d netsh int ipv4 set dnsserver "Wi-Fi" static %%e netsh int ipv4 add dnsserver "Wi-Fi" %%f ) )
-
@Numa09 First this looks like a DOS Batch file not a VBS file. That is maybe why its giving you an error with line 2.
Second make sure that csv file is part of your snapin pack.
-