Re: create subdir
- From: "DizWiz" <dizwiz@xxxxxxxxxx>
- Date: Sun, 15 May 2005 16:57:55 +0200
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/>
.
- Follow-Ups:
- Re: create subdir
- From: Herfried K. Wagner [MVP]
- Re: create subdir
- References:
- create subdir
- From: DizWiz
- Re: create subdir
- From: Herfried K. Wagner [MVP]
- create subdir
- Prev by Date: Re: data grid update
- Next by Date: Form.Close
- Previous by thread: Re: create subdir
- Next by thread: Re: create subdir
- Index(es):