Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2001
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    files/folders (vb6)

    Hello all,

    I cannot seem to figure out the code that deletes/creates/moves folders/files. can someone please give me an example peice of code??

    thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: files/folders (vb6)

    I believe that is called an Operating System. Examples are MS-DOS, UNIX, MacOS, Windows, ... Care to write your own?


    But seriously, your question is much too broad to answer in a single post. In particular, creating files is not a single subject. Creating a simple text file is very different from creating an Excel file, or an executable.

    A good tool for manipulating files is Scripting - the FileSystemObject has properties and methods for that. You need to set a reference to Microsoft Scripting Runtime in Project/References... to be able to use it. Warning: in some corporate network environments, Scripting has been disabled.

    See Scripting Runtime Library / Working with Files for an overview with code examples of how to use FileSystemObject to manipulate files.

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: files/folders (vb6)

    Also, search this forum for Scripting.FileSystemObject for some code
    sames, etc.

    Take Hans' word for it. Don't bother with Mkdir, etc
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •