move_file.cpp 677 B

1234567891011121314151617181920212223242526
  1. //
  2. // $Id$
  3. //
  4. #include<__vic/fs.h>
  5. #include<windows.h>
  6. namespace __vic {
  7. void move_file_(const char * , const char * , DWORD );
  8. //----------------------------------------------------------------------------
  9. void move_file(const char *src_path, const char *dest_path)
  10. {
  11. move_file_(src_path, dest_path, MOVEFILE_COPY_ALLOWED);
  12. }
  13. //----------------------------------------------------------------------------
  14. void move_file_replace(const char *src_path, const char *dest_path)
  15. {
  16. move_file_(src_path, dest_path,
  17. MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING);
  18. }
  19. //----------------------------------------------------------------------------
  20. } // namespace