I use myphoneexplorer while connected to my phone's hotspot. The phone's IP address changes every time I use the hotspot so I made a batch file to change the IP address automatically.
Here is the script. To use, copy and paste the script into notepad and save as a ".bat" file. Swap 'Wi-Fi 2' with the name windows gives to your Wifi adapter. Swap YOURUSERNAME with your windows username. You can take the pauses out if you want.
@echo off
for /f "tokens=3 delims=: " %%i in ('netsh interface ip show config name^="Wi-Fi 2" ^| findstr "Default"') do echo The Wifi2 gateway IP Address is: %%i
pause
cd "C:\Users\YOURUSERNAME\AppData\Roaming\MyPhoneExplorer"
set string=ConnectionIP
for /f "tokens=3 delims=: " %%i in ('netsh interface ip show config name^="Wi-Fi 2" ^| findstr "Default"') do set newline=ConnectionIP=%%i
set source=general.ini
set Scr="%temp%\TempVBS.vbs"
set VB=echo^>^>%Scr%
if exist %Scr% del %Scr%
%VB% Set oFSO = CreateObject("Scripting.FileSystemObject")
%VB% Set oFile = oFSO.OpenTextFile("%source%")
%VB% aText = Split(oFile.ReadAll, VbCrLf)
%VB% oFile.Close
%VB% Set oFile = oFSO.CreateTextFile("%source%", True)
%VB% For Each sLine In aText
%VB% If InStr(1, sLine, "%string%", 1) = 0 Then
%VB% oFile.WriteLine sLine
%VB% Else
%VB% oFile.WriteLine "%newline%"
%VB% End If
%VB% Next
%VB% oFile.Close
cscript //nologo %Scr%
:: del %Scr%
Nächstes Thema anzeigen Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen.
Die Webseite kann Cookies verwenden, um Ihre Anmeldeinformationen zu speichern und die Website-Funktionalität für Ihre Verwendung zu optimieren. Weitere Informationen sind auf folgenden Seiten verfügbar Datenschutz und Cookies