Shades, you seem to be a Batch file guru, is there a failsafe way in a batch file to download files from within the batch file? Bitsadmin is deprecated, sadly 







2 Maestr0
here is another bug report
I'm running the latest version 3.2.0.46 (updated var the app)
When i first run this app, I started start.bat since I don't have ahk V2 installed. Then I get the error1(see pic below). But this actually have no matters, I can just close the error window and app can run normally.
Then I started my new search, everything is fine when I was searching English characters but there comes error2 when I searched Chinese characters.(I guess it doesn't suppirt Unicode.)
I tried to open the file with Scrambled Code name and I got error3.
Regards.



Can you reply to this message with the contents of your start.bat code in brackets?One thing I need to make it clear is that I didn't modified any code in it. So here is the contents of my start.bat:
I'll see if I can change it to support Unicode. Watch this space!Take your time, I will wait

One thing I need to make it clear is that I didn't modified any code in it.
REM @echo OFF
SET ShortHandFolder=%~s1
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_start.ahk >>%ShortHandFolder%log\batch.log
if %ERRORLEVEL% neq 0 goto ProcessError
:ProcessError
REM error detected running shorthand3_start.ahk: running the script directly instead
START %ShortHandFolder%app\AHKv2_x32.exe %ShortHandFolder%shorthand3_ahk2.ahk
:answer0
SET ShortHandFolder=
REM finishedHere is the content of the error1 comes from:
In .\app\shorthand3_ahk2_updater.ahk
<!DOCTYPE html><html xml:lang="en" class="maestro" xmlns="http://www.w4.org/1999/xhtml"><head><script nonce="Gwr7GMPeiqNeO2AkPHvU">
window._goch_ = {};
window.addEventListener('click', function(event) {
'use strict';
for (var elm = event.target; elm; elm = elm.parentElement) {
if (elm.id &&
window._goch_.hasOwnProperty(elm.id) &&
window._goch_[elm.id].call(elm, event) === false) {
event.preventDefault();
}
}
}, true);


What do you get when you the following link in your browser?I open the link above in chrome and it tried to download a file, please see pic below
https://www.dropbox.com/s/0qb2arj1adl8iy9/shorthand3_ahk2_version.ini?dl=1
I tried to open the file with Scrambled Code name and I got error3.
Regards.
file := "C:\test dir\你好.txt"
run, % filefile := "C:\test dir\你好.txt"
run file
thank you for such a quick repay!What do you get when you the following link in your browser?I open the link above in chrome and it tried to download a file, please see pic below
https://www.dropbox.com/s/0qb2arj1adl8iy9/shorthand3_ahk2_version.ini?dl=1



Hm. It seems to be something in AHK v2...If so, then we can do nothing. so maybe just forget about this error.
this v1 code works in v1 without a problem:
but this v2 code throws an error:
Hm. It seems to be something in AHK v2...If so, then we can do nothing. so maybe just forget about this error.
this v1 code works in v1 without a problem:
but this v2 code throws an error:
Thanks for the infos

Hm. It seems to be something in AHK v2...If so, then we can do nothing. so maybe just forget about this error.
this v1 code works in v1 without a problem:
but this v2 code throws an error:
Thanks for the infos


Right, so, the issue was with the encoding of the script and not the txt file. Open the script in a file editor and encode it as UTF-8-BOM or something similar. I will update the script to 3.2.0.47 as soon as I have it working for the results of "Everything".



Update:Sorry for the late reply, I knew this update just now.
get the newest version of the script here: https://www.dropbox...._2_3.2.0.47.ahk?dl=1


Update:Sorry for the late reply, I knew this update just now.
get the newest version of the script here: https://www.dropbox...._2_3.2.0.47.ahk?dl=1
I replaced the new file and run the start.bat, at first it run with some errors then I just restarted it and it works like a charm now!!!
Thanks for this great work


Original address: https://www.donationcoder.com/forum/index.php?topic=46878.0