This PowerShell script uploads files with a specified extension from a specified directory and its subdirectories to a server.
If you find this project useful and would like to support its development, you can buy me a coffee by clicking the button below:
Your support is greatly appreciated!
- Open the script in a text editor.
- Replace the
$srcparameter with the path to the directory containing the files you want to upload. - Replace the
$extparameter with the file extension of the files you want to upload (e.g.*.txtfor text files). - Save the changes to the script.
- Run the script in PowerShell.
$src: The path to the directory containing the files to upload.$ext: The file extension of the files to upload.
- Make sure to replace the server URL in the script with the URL of your server before running it.
- This script uses the
System.Net.Webclientclass to upload files.
Contributions are welcome! If you find any bugs or have suggestions for improving the script, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.
