Path issue

Screenshot available: C:\Users\svc-botasn3.qa\AppData\Local\Temp\auvmvogu-jt2.jpg

this is my screenshot available part which is coming dynamically as auvmvogu-jt2.jpg shown above … and for every ss it ll keep changing … tell me a code where i can make this static

First, define the static path where your file is located. For example:

staticPath = "C:\Users\svc-botasn3.qa\AppData\Local\Temp"

Step 2: Get the File Name Dynamically
Use the Directory.GetFiles method to get the file(s) from the static path. If you know the file has a specific pattern (e.g., it always starts with “Report”), you can use that pattern to filter the files.

files = Directory.GetFiles(staticPath, “*.jpg”)
This will return an array of file paths that match the pattern.

Step 3: Move the File
Loop through the array of files and move each file to the desired destination. For example:

For Each file In files
destinationPath = "C:\Users\YourUsername\Documents\DestinationFolder" + Path.GetFileName(file)
File.Move(file, destinationPath)
Next