start cmd as administrator / sortcut
*
Dim psi As New ProcessStartInfo()
psi.Verb = "runas" ' runas = Run As Administrator
psi.FileName = "cmd.exe"
psi.Arguments = "/c mklink C:\aa\2.txt C:\aa\Server\2.txt"
Try
Process.Start(psi)
Catch
End Try

start cmd as administrator / sortcut 

이 게시물을

댓글'1'

        Dim StartupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup)
        Dim psi As New ProcessStartInfo()
        psi.Verb = "runas" ' runas = Run As Administrator
        psi.FileName = "cmd.exe"
        psi.Arguments = "/c mklink C:\aa\2.txt C:\aa\Server\2.txt"
        MsgBox(psi.Arguments)
        Try
            Process.Start(psi)
        Catch
        End Try

        My.Computer.FileSystem.MoveFile("C:\aa\2.txt", StartupFolder & "\2.txt")

이 댓글을

공유하기

SEARCH

MENU NAVIGATION