2024-08-12, 05:41 PM
To use the script, paste it into your preferred text editor. For Windows, Notepad is the default option. I’ve attached the script to this post for your convenience so you can skip that step, but you’ll need to rename the attached file by removing the .txt extension so that it’s named CreateSRTFiles.ps1 instead of CreateSRTFiles.ps1.txt.
To show file extensions in Windows 11:
Next, open PowerShell and navigate to the directory where the file is saved. Use the following command, replacing username with your actual Windows username:
Once in the correct directory, execute the script by typing:
The script will then prompt you to specify the directory. You only need to perform this step once.
To show file extensions in Windows 11:
- Open File Explorer: You can do this by clicking the File Explorer icon on the taskbar or pressing Win + E on your keyboard.
- Go to the View Menu (located on the ribbon menu): Select Show, then select File name extensions.
Next, open PowerShell and navigate to the directory where the file is saved. Use the following command, replacing username with your actual Windows username:
Code:
cd C:\Users\username\Desktop\
Once in the correct directory, execute the script by typing:
Code:
.\CreateSRTFiles.ps1
The script will then prompt you to specify the directory. You only need to perform this step once.