Postřehy z prostředí herního průmyslu

I hate windows console rename command in a shell

Příspěvekod markblake » 03 črc 2017, 09:20

Hello,

I was shelling out to the console via system () in process.h and I bumped into this problem.
I guess they made it like that on purpose to minimize damage from a rouge app renaming files.
I guess I have to think like a virus writer. I got around the problem by using copy and then the user has a decision to erase the files.
I'll have to tranverse a tree and get all the files in that directory for local renaming uninstead a full path like the copy command can.



I didn't find the right solution from the internet.
References:
https://www.bleepingcomputer.com/forums ... n-a-shell/

Professional 3D Animation Studio
markblake
Kolemjdoucí
Kolemjdoucí
 
Příspěvky: 4
Registrován: 14 čer 2017, 08:32

I hate windows console rename command in a shell

od Rumcajz » 03 črc 2017, 09:20

A uz jsi vyzkousel treba tohle? Rumcajz
Rumcajz
Rumcajz
Patriot
Rumcajz
 
Příspěvky: 97323
Registrován: sob 29.led 1999 0:11:22

Zpět na Diskuze o hrách

Kdo je online

Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 0 návštevníků