#include #include int main() { LPCWSTR sourcePath = L"file.txt"; // 移動元ファイルのパス LPCWSTR destinationPath = L"../file.txt"; // 移動先ファイルのパス // ファイルを移動する BOOL result = MoveFileExW(sourcePath, destinationPath, MOVEFILE_REPLACE_EXISTING); if (result) { printf("ファイルの移動に成功しました。\n"); } else { printf("ファイルの移動に失敗しました。エラーコード:%d\n", GetLastError()); } return 0; }