Hi everyone,
I'm running a program that requires me to enter a Serial number every time I start it (it's not a bug). So can i start it and automatically copy my SN to the clipboard so I can paste it right away?
any way I use this .bat file:
@echo off
start "Program" "C:\Program Files\program\program.exe"
start "SN" "C:\Program Files\program\Serial number.txt"
so it opens the text file and the program, but I want to copy it right away without having to switch to the text file and close it
However, the program for some reason disappears after the splash screen, but when I run it from the shortcut or the start menu it starts normally, I think it's the batch file issue....
So, can I make an exe file that launches the program and copy the serial number (XXXXXX) to the clipboard? is it possible and how please?
thanks.
How to run a program and copy text to the clipboard Topic is solved
Re: How to run a program and copy text to the clipboard Topic is solved
Hallo,
try this:or that:
try this:
Code: Select all
Run, C:\Program Files\program\program.exe
FileRead, Clipboard, C:\Program Files\program\Serial number.txt
Code: Select all
Run, C:\Program Files\program\program.exe
Clipboard = XXXXXX
Re: How to run a program and copy text to the clipboard
SORRY FOR THE LATE REPLY
thank you soooo much my friend, you saved my day!
It worked!
thank you soooo much my friend, you saved my day!
It worked!
Who is online
Users browsing this forum: Bing [Bot], Starker and 306 guests