Looking to run a windows command line that will take the file name and append a %random% three digit number onto the end. All with the understanding that its probably never truly random..
test_file.mp4 to test_file_582.mp4
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note it is possible for this to return the same pseudo-random number multiple times, so you may want to test existence of the new file before potentially clobbering something that already exists.
It also won’t be padded out to three digits (i.e. you can have
test_file_1.mp4as a result). I’ll leave this as an exercise for the reader for now.