jeudi 5 novembre 2015

Rename Function?

I've tried using this code to move a file to another place.

#include <stdio.h>

    int main()
      rename("C:\\Users\\Mohammed Mehdi\\Documents\\Visual Studio 2012\\Projects\\Kyle", "C:\\Users\\Mohammed Mehdi\\Documents\\Visual Studio 2012");
      return 0;

The problem is that when I actually check all my computer files, nothing's happened. I've checked the return codes and it's returning 0 so it should be fine. I also have no errors.

I've looked at this question, but my code has no errors while I'm running it. Rename function doesn't work, Visual Studio 2013 RC

Aucun commentaire:

Enregistrer un commentaire