Issue
Iam trying to open ftp url in file explorer.
url = QUrl("ftp://192.168.1.127:15010/intrusionfiles/detectionfiles/",QUrl.TolerantMode)
url.setScheme("ftp")
QDesktopServices.openUrl(url)
When I try it this way it asks how I want it to open. How do I get it to open directly in file explorer?
Solution
Solved my problem by starting explorer.exe using qprocess.
p = QProcess()
p.startDetached("C:\\Windows\\explorer.exe", ["ftp://admin:[email protected]:15010/intrusionfiles/detectionfiles/21-09-21/"])
Answered By - gkslsahin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.