I am not a programmer but I do like some coding and try some automation on a project i have on my mind.
I have a folder (folder1) which contains many pictures. The pictures in this folder are auto-downloaded from the internet so I will not be able to know the specific name of the .jpg files in the folder.
What I want to do is create a batch that will move 1 file (.jpg image)from folder1 to another folder (folder2). Everything that I have found tells me that I must put the name of the file i want to move on the batch. But my problem is I will not know the specific name of the file to be moved. I want just to move 1 (any 1) .jpg file to folder2. so what i think maybe can help is to make the batch to move a random or the first .jpg from folder1 to fodler2.
But i don't know how to script the batch so as to move the 1st file (.jpg file) from fodler1 or a random file from folder1 (whichever option is easier to be scripted) to folder2
What I have tried so far but it doesnt work since it moves all the files from folder1 to folder2 is this:
move 1 /y "C:\Users\xyzuser\Desktop\folder1\*.jpg" "C:\Users\xyzuser\Desktop\folder2"
pause
Anyone can help me to what the correct batch should be so as to move one file (any one, not caring for the name) from folder1 to folder2?
Thanks for any answers in advance!