Hi Emily,

> I was asked to make an interface with three buttons;
> check, create, and delete. There is a directory and
> they want to be able to check for sub-directories
> that already exsist, create them, or delete them if
> necessary.

Project > References > Microsoft Scripting Runtime

Now in your procedures use code like this:

'// ========================================================
sub cmd1_click()
  dim fso as filesystemobject
  set fso = new filesystemobject
  if fso.folderexists("C:\windows\") then
    msgbox "it's there!"
  else
    msgbox "it's NOT there!"
  end if
end sub
'// ========================================================

Also look into the "CreateFolder" and "DeleteFolder" methods of the
FileSystemObject.

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
    Life is pain, highness!  Anyone who says differently is
    selling something.
      -- 'Man in Black', The Princess Bride




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to