claudiodangelis / qrcp

:zap: Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal.
https://qrcp.sh
MIT License
9.89k stars 524 forks source link

Can Qrcp run with a log file? #316

Closed ilaoyao closed 4 months ago

ilaoyao commented 7 months ago

I'm opening this issue because:

Is there a FLAG like -log that can create a log file in the %temp%-folder, when qrcp is running ? in the log file we can see the url address..

claudiodangelis commented 7 months ago

Hello! There is no such flag yet, honestly I'm not sure how much valuable it would be in general terms. Do you have any specific usecase for this? (i.e.: debugging, etc?)

Thanks for your continued support! Claudio

ilaoyao commented 7 months ago

yes, I want to make a GUI-windows to show the qrcode, not in a cmd-windows, i just want the current qrcd-cmd url. eg. if the qrcp.exe is running, then i can hide the cmd-windows, instead of a GUI window, but i need a current url address to show on this gui windows.

so can it create a log-file in temp folder, file-name is just like qrcp-PID.txt. and write the current url address in this file, so i can read the url-address from this file. so i can hide the cmd-windows and show the gui-windows,just like blow(this GUI is one of my apps for a third-qrcp app (base on your qrcp).

111

even more, can create a png file with transparent backgound,so can show the qrcode in the gui.

sincerely ilaoyao

claudiodangelis commented 7 months ago

Hello, knowing your IP, you could try passing the --path and --port flags to make the URL predictible:

qrcp --path file --port 8080 /yourfile.txt

The resulting URL will be:

http://<your IP>:8080/send/file

Let me know if this helps, thanks!