Here is the current code.
Dim textOutput As TextOutputStream
Dim fPaste As FolderItem
fPaste = specialFolder.Desktop.Child(“Temp.bat”)
textOutput = TextOutputStream.Create(fPaste)
textOutput.WriteLine(“gpg --encrypt --sign -r UserID1 -r UserID2 testEncrypt.txt”)
dim s as new Shell
s.execute(“start c:\Users\Vasilis\Desktop\Temp.bat”)
In this attempt I have made a .bat file and tried to run it through that.
The file gets created, but the message I get (because I used start) through the cmd is “gpg is not recognized as an internal or external command”. BUT, when I run the .bat manually it gets executed and it creates my encoded file.
PS: I have tried “c:\Program Files (x86)\GnuPG\bin\gpg.exe --encrypt --sign -r UserID1 -r UserID2 testEncrypt.txt”
and “c:\Program Files (x86)\GnuPG\bin\gpg --encrypt --sign -r UserID1 -r UserID2 testEncrypt.txt” and I get c:\Program is not recognized as an internal or external command".