runret command returns some gibberish characters and the null character

Things you’d like to miss in the future...
Post Reply
dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

runret command returns some gibberish characters and the null character

Post 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

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

Looks like UTF-16. The codepage parameter of runret should be able to handle this.

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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.

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post 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"));

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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.

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post 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);

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

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

Post 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
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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
Quicker83.png (46.63 KiB) Viewed 168 times

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

Looks good. Are you sure you tried v25.20.0117 - 2023-12-04 14:38?

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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
动画.gif (954.13 KiB) Viewed 156 times
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.

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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?

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

You downloaded the latest official version. Grab the latest beta: viewtopic.php?p=216306#p216306

dicktatorc
Posts: 9
Joined: 24 May 2023 15:21

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

Post 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.

Post Reply