[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Copying directory

Is there an ANSI C library function(supported by both Unix and NT) which can copy an entire directory?
0
UTEK
Asked:
UTEK
  • 2
1 Solution
 
ozoCommented:
Not in ANSI C, since C implementations need not have any directory at all.
0
 
dewsburyCommented:
#include <stdlib.h>
#include <process.h>

system( "rd mydirectory" );

This is an ANSI call. You can alias the rd command on a unix system.

0
 
dewsburyCommented:
Sorry, Make that remove directory command a copy directory.

Kind of a work around for your problem.
0
 
UTEKAuthor Commented:
ya...I just find out that solution. Thanks
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now