This script connects to your WSA virtual machine through adb and pushes a file from your computer to your WSA filesystem.
- Open the command prompt.
- Navigate to the folder where the script is saved. or copy the script to a folder in your PATH.
- Type the following to push a file to your device:
wsa_push.bat file_path/filename.extension
(replacefile_path/filename.extension
with the path and name of the file you want to push)
- WSA started with debugging on and adb enabled.
- Android SDK installed and added to your system path.
- File to push to your device.
- Download the script.
- Save the script to a folder on your computer.
- Open the command prompt and navigate to the folder where the script is saved, or copy the script to a folder in your PATH.
- You may need to adjust the
DOWNLOAD_PATH
variable to match the device's Android version.
- If ADB is not installed in your system path, the script will prompt you to install Android SDK and add it to your system path.
- If the script fails to connect to ADB, check that WSA has started and ADB debugging is enabled.
- The script will output the device's Android version for reference.
- The script will push the specified file to the Download folder on the device.
To push a file called "example-file.txt" located in the "C:\Users\Username\Desktop" folder to the device, type the following command in the command prompt:
wsa_push.bat C:\Users\Username\Desktop\example-file.txt