mirror of
https://github.com/kimmknight/remoteapptool.git
synced 2024-11-21 21:17:20 +00:00
Fixed the issue that the RDP file was locked under the administrator user
This commit is contained in:
parent
b0272722b9
commit
92d558b7d6
@ -36,7 +36,9 @@ Public Class RDP
|
|||||||
If Not WixInstalled() Then Exit Sub
|
If Not WixInstalled() Then Exit Sub
|
||||||
|
|
||||||
'Get RDP file parent folder path
|
'Get RDP file parent folder path
|
||||||
Dim rdpParentFolder = My.Computer.FileSystem.GetParentPath(rdpFilePath)
|
'Dim rdpParentFolder = My.Computer.FileSystem.GetParentPath(rdpFilePath)
|
||||||
|
Dim lastSlashIndex = rdpFilePath.LastIndexOf("\")
|
||||||
|
Dim rdpParentFolder = Left(rdpFilePath, lastSlashIndex)
|
||||||
|
|
||||||
'Get the RDP filename and filename minus extension
|
'Get the RDP filename and filename minus extension
|
||||||
Dim rdpFileName = My.Computer.FileSystem.GetFileInfo(rdpFilePath).Name
|
Dim rdpFileName = My.Computer.FileSystem.GetFileInfo(rdpFilePath).Name
|
||||||
|
Loading…
Reference in New Issue
Block a user