Page 1 of 1

runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 12:30
by dicktatorc
runret command returns some gibberish characters and the null character.

Code: Select all

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f "B:\下载\026.ts"));
result:

Code: Select all

S D e l e t e   v 2 . 0 5   -   S e c u r e   f i l e   d e l e t e
 
 C o p y r i g h t   ( C )   1 9 9 9 - 2 0 2 3   M a r k   R u s s i n o v i c h
 
 S y s i n t e r n a l s   -   w w w . s y s i n t e r n a l s . c o m
 
 
 
 S D e l e t e   i s   s e t   f o r   1   p a s s .
 
 B : \ N}廫 0 2 5 . t s . . . d e l e t e d .
 
 
 
 F i l e s   d e l e t e d :   1
"B:\下载\026.ts" appears to be "B : \ N}廫 0 2 5 . t s" which contains gibberish characters.
how to solve this problem?
by the way, the software i'm using in here:https://learn.microsoft.com/en-us/sysin ... ds/sdelete

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 12:42
by admin
Looks like UTF-16. The codepage parameter of runret should be able to handle this.

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 13:58
by dicktatorc
admin wrote: 04 Dec 2023 12:42 Looks like UTF-16. The codepage parameter of runret should be able to handle this.
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 1200);
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 1201);
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 12000);
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 12001);
return nothing, just plain blank.

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 936);
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), , 65001);
just return null characters and garbled characters as before.

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 14:29
by admin
Confirmed. Fixed it. This will work without any codepage parameter in the next beta:

Code: Select all

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f "B:\下载\026.ts"));

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 14:40
by dicktatorc
admin wrote: 04 Dec 2023 14:29 Confirmed. Fixed it. This will work without any codepage parameter in the next beta:

Code: Select all

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f "B:\下载\026.ts"));
you haven't fixed it yet. the problem still occur as i've posted before.

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 14:46
by admin
Hmm, works here.

Try this and post the result:

Code: Select all

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f "B:\下载\026.ts"), 3:=1);

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 14:47
by highend
Works fine with 0117...

Code: Select all

text runret(lax("D:\Tools\@Command Line Tools\Sysinternals\SDelete\sdelete64.exe" -r -s -f "C:\Users\Highend\Downloads\下载 [01].txt"));

Code: Select all

SDelete v2.05 - Secure file delete
Copyright (C) 1999-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
C:\Users\Highend\Downloads\下载 [01].txt...deleted.

Files deleted: 1

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 15:01
by dicktatorc
admin wrote: 04 Dec 2023 14:46 Hmm, works here.

Try this and post the result:

Code: Select all

text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f "B:\下载\026.ts"), 3:=1);
i tried:
text runret(lax("<xypath>\sDelete\sdelete64.exe" -r -s -f <selitems>), 3:=1);
Quicker83.png

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 15:06
by admin
Looks good. Are you sure you tried v25.20.0117 - 2023-12-04 14:38?

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 15:46
by dicktatorc
admin wrote: 04 Dec 2023 15:06 Looks good. Are you sure you tried v25.20.0117 - 2023-12-04 14:38?
i've just downloaded the lastest version.
动画.gif
by the way, the only solution i got is to redirect the result to a file and then read it. but i don't like to write data to hard drive, compared to write directly through memory.

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 15:49
by dicktatorc
highend wrote: 04 Dec 2023 14:47 Works fine with 0117...

Code: Select all

text runret(lax("D:\Tools\@Command Line Tools\Sysinternals\SDelete\sdelete64.exe" -r -s -f "C:\Users\Highend\Downloads\下载 [01].txt"));

Code: Select all

SDelete v2.05 - Secure file delete
Copyright (C) 1999-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
C:\Users\Highend\Downloads\下载 [01].txt...deleted.

Files deleted: 1
sorry, i'm not a native english speaker. what does 0117 mean?

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 15:50
by admin
You downloaded the latest official version. Grab the latest beta: viewtopic.php?p=216306#p216306

Re: runret command returns some gibberish characters and the null character

Posted: 04 Dec 2023 16:08
by dicktatorc
admin wrote: 04 Dec 2023 15:50 You downloaded the latest official version. Grab the latest beta: viewtopic.php?p=216306#p216306
ok, the beta version works. thanks very much.I appreciate your help.