Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use QM variable in argument of run statement (command line)
#1
"C:\Program Files\Gadwin Systems\PrintScreen\PrintScreen.exe" "/file='C:\Screenshots\shot1.jpg'"

but I need to increment shot1.jpg to shot2.jpg and so on so that I never overwrite a screenshot.

How do I make the path a variable that I can pass?

Thanks
#2
str s
s.format("command line with variables" variables)
run ... s

Also try UniqueFileName.


Forum Jump:


Users browsing this thread: 1 Guest(s)