@ DSummZZZ
I think your way similar with mine and results is same
cAction = "Open"
cFileName = "d:\data\datanya\testps2.bat"
ShellExecute( 0, cAction, cFileName, "", "", 2 )
Hello Olaf,
Thank you for your responded, my current windows is windows 8. I avoid use run as "administrator" since need user access only. but why I can run file testps2.bat manually via explorer and not need login as administrator
Note:
testps2.bat = powershell -command .\disableprint.ps1...
Need help,
I have power shell script and want to running in vfp 9.0, here is content of power shell file
Content of disableprint.ps1:
$username = 'test'
$password = 'test123'
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String...
@Olaf for clear information I read function in VB like below:
****************************************************************
Private Function HexToByte(ByVal HexText As String) As Byte()
Dim Looper As Long
Dim Looper2 As Long
Dim Nibble As Byte
Dim Bytes() As Byte
HexText = UCase(HexText)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.