Announcement

Collapse
No announcement yet.

I hate windows console rename command in a shell

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • I hate windows console rename command in a shell

    rename was purposely used like so
    rename originalcompletepath nameofnewrenamedfile in current directory
    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.
    Please Help.
    Thanks !
    I didn't find the right solution from the internet.
    References:
    - https://www.bleepingcomputer.com/for...nd-in-a-shell/
    - video marketing
Working...
X