Re: create subdir

Tech-Archive recommends: Speed Up your PC by fixing your registry



Thanks for the reply, but solved it anothing way:


Dim winenv
Dim dircreate
winenv=environment.GetenvironmentVariable("windir")
dircreate=(winenv)&"\backup"
My.Computer.FileSystem.CreateDirectory(dircreate)

Please comment

Jacco

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:uNvdqkVWFHA.3620@xxxxxxxxxxxxxxxxxxxxxxx
> "DizWiz" <dizwiz@xxxxxxxxxx> schrieb:
>> Dim windowsdir as String
>> Dim dircreate
>> dircreate="backup"
>> windowsdir=environ$("windir")
>> My.Computer.FileSystem.CreateDirectory(windowsdir)
>>
>> I want to create the directory "backup" under the windows directory and i
>> don't want to use the absolute path, what am i missing?
>
> \\\
> Imports System.IO
> .
> .
> .
> My.Computer.FileSystem.CreateDirectory( _
> Path.Combine(Environ("windir"), "backup") _
> )
> ///
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>


.