Hello everyone, can some one help me with the code to create a folder by code in vb6,I am greatefull for Qvee72.
The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so when logged on can only access the pre created folder by his/her name,
The MkDir code limits me with the location I need the folder to be created when I provide the path ie,C:\Documents and Settings\MyName\Desktop when I move to another location or machine an erro.
Can I get another way please,thanks

try something like

Set fso = CreateObject("Scripting.FileSystemObject")
path = "C:\folder1"
fso.createFolder path
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.