Mar 9, 2002 #1 123457 Programmer Joined Mar 9, 2002 Messages 4 Location AZ Which object is used to create/delete/modify files and directories? What is the code used to instantiate that object?
Which object is used to create/delete/modify files and directories? What is the code used to instantiate that object?
Mar 11, 2002 #2 Matilde Programmer Joined Nov 30, 2001 Messages 18 Location DK you can use the filesystemobject to create files, delete them etc. set xxx = CreateObject("scripting.FileSystemObject" xxx.yyy and here you put the required parameters 'xxx = doesn't matter just a variable. 'yyy = any method you want to use. ex: CopyFile, DeleteFile, MoveFile, DeleteFolder etc. Upvote 0 Downvote
you can use the filesystemobject to create files, delete them etc. set xxx = CreateObject("scripting.FileSystemObject" xxx.yyy and here you put the required parameters 'xxx = doesn't matter just a variable. 'yyy = any method you want to use. ex: CopyFile, DeleteFile, MoveFile, DeleteFolder etc.