Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=desga2] This is your problem: [quote=http://www.di-mgt.com.au/mysecret.html#file] If the name of the file or the folder contains spaces, enclose the name in double-quotes [code] MYSECRET "My Documents\myfile.txt" "My Documents\myfile.txt.mys" [/code] [/quote] - With your default exec() code: G:\>"G:\K-Meleon153en-US_TEST\Profiles\gvfeedr2.default\ macros\Secur_Paste\MySecret.exe" -e -n -p "DEYOUNG" readme.txt readme.ecm [b]MySecret: Cannot find or open file 'readme.txt'[/b] - If you use paths with double quotes in input and output files the macro work: G:\>"G:\K-Meleon153en-US_TEST\Profiles\gvfeedr2.default\ macros\Secur_Paste\MySecret.exe" -e -n -p "DEYOUNG" "G:\ K-Meleon153en-US_TEST\Profiles\gvfeedr2.default\macros\Secur_Paste\readme.txt" " G:\K-Meleon153en-US_TEST\Profiles\gvfeedr2.default\macro s\Secur_Paste\readme.ecm" In your code you must change to this: [code] [...] [b]$_MySecret_path="\"".getfolder(UserMacroFolder)."\\Secur_Paste\\MySecret.exe\" "; $_file_input="readme.txt"; $_file_output="readme.ecm"; $_input_path=" \"".getfolder(UserMacroFolder)."\\Secur_Paste\\".$_file_input."\""; $_output_path=" \"".getfolder(UserMacroFolder)."\\Secur_Paste\\".$_file_output."\"";[/b] _Snippet_RunCode{ $_Snippet_Choice = prompt("Enter 'E' to encrypt or 'D' to decrypt", "CHOICE"); if ($_Snippet_Choice == "E") { macros(_Snippet_Encrypt); } if ($_Snippet_Choice == "D") { macros(_Snippet_Decrypt); } } _Snippet_Encrypt { #$_Snippet_Crypt_Path=getfolder(UserMacroFolder)."\\Secur_Paste\\MySecret.exe"; $_Snippet_SwitchM1 = "-e -n -p "; # a space required between -p and the passphrase $_Snippet_SwitchM2 = "DEYOUNG"; # must have quotes if includes spaces [b]$_Snippet_SwitchM3 = $_input_path." ".$_output_path;[/b] $_Snippet_SwitchM = $_Snippet_SwitchM1."\"".$_Snippet_SwitchM2."\"".$_Snippet_SwitchM3 ; alert( $_Snippet_SwitchM , "$_Snippet_SwitchM DEBUG", INFO); [b]exec($_MySecret_path.$_Snippet_SwitchM); setclipboard($_MySecret_path.$_Snippet_SwitchM);[/b] [...] [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development