Nov 20, 2003 #1 VBAguy22 IS-IT--Management Joined Aug 5, 2003 Messages 180 Location CA Hello all, How can I create a directory using VB6? Say, I want to create C:\BlahThanks
Nov 20, 2003 #2 mmilan Programmer Joined Jan 22, 2002 Messages 839 Location GB mkdir "c:\blah" Upvote 0 Downvote
Nov 20, 2003 #3 nicsin Programmer Joined Jul 31, 2003 Messages 743 Location GB Hi, insert a reference to "Microsoft Scripting Library" and use this code: with new FileSystemObject .CreateFolder folderName end with nicsin Upvote 0 Downvote
Hi, insert a reference to "Microsoft Scripting Library" and use this code: with new FileSystemObject .CreateFolder folderName end with nicsin
Nov 20, 2003 #4 nicsin Programmer Joined Jul 31, 2003 Messages 743 Location GB Oh well, I guess mmilan's solution is much simpler... Upvote 0 Downvote
Nov 20, 2003 #5 mmilan Programmer Joined Jan 22, 2002 Messages 839 Location GB Or, if you're not M*A*D, mkdir "C:\blah"... mmilan (lol) Ps. It's worth reading about the File Scripting object - and nicsin is right to mention it. I just don't think you need it for the task you mention... Upvote 0 Downvote
Or, if you're not M*A*D, mkdir "C:\blah"... mmilan (lol) Ps. It's worth reading about the File Scripting object - and nicsin is right to mention it. I just don't think you need it for the task you mention...
Nov 20, 2003 #6 nicsin Programmer Joined Jul 31, 2003 Messages 743 Location GB Quite right mmilan. I just crossposted with you... All the best, nicsin Upvote 0 Downvote
Nov 20, 2003 #7 mmilan Programmer Joined Jan 22, 2002 Messages 839 Location GB Aye - didn't see your second post nicsin - sorry... Upvote 0 Downvote
Dec 9, 2003 Thread starter #8 VBAguy22 IS-IT--Management Joined Aug 5, 2003 Messages 180 Location CA ok thanks guys, how would u check if C:\blah\ already exists? Upvote 0 Downvote
Dec 9, 2003 #9 mmilan Programmer Joined Jan 22, 2002 Messages 839 Location GB Use the dir() function... Upvote 0 Downvote
Dec 9, 2003 #10 BiggerBrother Technical User Joined Sep 9, 2003 Messages 702 Location GB use the fso object again fso.folderexists("C:\blah\" returns boolean result BB Upvote 0 Downvote