How to format hard drive

1 Ansicht (letzte 30 Tage)
Zhangxi Feng
Zhangxi Feng am 4 Jun. 2018
Kommentiert: Zhangxi Feng am 4 Jun. 2018
I found several threads discussing the danger of using eval where some answers used eval and a string of visually encrypted codes to display With EVAL you never know what happens. It could have formatted your harddrive ...
eval(char('fkur*)Ykvj"GXCN"{qw"pgxgt"mpqy"yjcv"jcrrgpu0"Kv"eqwnf"jcxg"hqtocvvgf"{qwt"jctfftkxg"000)+'-2))
And it got me thinking about how to actually do it. Clearly it simply needs to eval a system() statement, but I remember harddisk formatting will have confirmation messages, how can the code overcome that?
  2 Kommentare
Stephen23
Stephen23 am 4 Jun. 2018
Bearbeitet: Stephen23 am 4 Jun. 2018
I just used [major internet search engine] to search for "format harddrive without prompt" and found two possible solutions.... didn't try any of them though, I leave that up to you.
Zhangxi Feng
Zhangxi Feng am 4 Jun. 2018
I see. I didn't even think that would be an option... Thanks. Mods can you move his response down and mark as answer?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by