i wanna know how i can remove a character in a file i mean i wanna delete the first 2 character of each line.
There is my script i wanna do a list of all pc and server of my network with their IP adress
NET VIEW > H:\Script\ordis.txt
FIND "\\" H:\Script\ordis.txt > H:\Script\collecte\POSTES_TMP.TXT
IF EXIST H:\Script\collecte\POSTES.TXT DEL H:\Script\collecte\POSTES.TXT
FOR /F "eol=-" %%i IN (H:\Script\collecte\POSTES_TMP.TXT) DO ECHO %%i >> H:\Script\collecte\POSTES.TXT
pause
FOR /F "eol=-" %%i IN (H:\Script\collecte\POSTES.TXT) DO ping %%i >>h:\script\collecte\liste_ip_TMP.txt
pause
FOR /F "eol=-" %%i IN (H:\Script\collecte\Liste_ip_tmp.TXT) DO
FIND "192.9.200" H:\Script\collecte\liste_ip_tmp.txt > H:\Script\collecte\liste_ip.TXT
Thanks
Jonathan Morin
Network administrator
Garant Inc.
There is my script i wanna do a list of all pc and server of my network with their IP adress
NET VIEW > H:\Script\ordis.txt
FIND "\\" H:\Script\ordis.txt > H:\Script\collecte\POSTES_TMP.TXT
IF EXIST H:\Script\collecte\POSTES.TXT DEL H:\Script\collecte\POSTES.TXT
FOR /F "eol=-" %%i IN (H:\Script\collecte\POSTES_TMP.TXT) DO ECHO %%i >> H:\Script\collecte\POSTES.TXT
pause
FOR /F "eol=-" %%i IN (H:\Script\collecte\POSTES.TXT) DO ping %%i >>h:\script\collecte\liste_ip_TMP.txt
pause
FOR /F "eol=-" %%i IN (H:\Script\collecte\Liste_ip_tmp.TXT) DO
FIND "192.9.200" H:\Script\collecte\liste_ip_tmp.txt > H:\Script\collecte\liste_ip.TXT
Thanks
Jonathan Morin
Network administrator
Garant Inc.