473,376 Members | 1,043 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,376 software developers and data experts.

Create subdir in windows dir

Hi!,

Im am using the VB Express Beta2 but cannot figure out how to create a
subdir in the windows directory.

Code:

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?

Thanks.

Jacco
Jul 17 '05 #1
4 9311

"DizWiz" <di****@dizwiz.com> wrote in message
news:42***********************@news.wanadoo.nl...
Hi!,

Im am using the VB Express Beta2 but cannot figure out how to create a
subdir in the windows directory.


Pardon my ignorance but what on earth is VB Express?
Jul 17 '05 #2
Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET (including VB2003 and VB2005 which has
dropped .NET from its name) questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups for Visual Basic
..NET related questions...

microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.upgrade
microsoft.public.dotnet.languages.vb.controls
microsoft.public.dotnet.languages.vb.data

And these for more general .NET questions

microsoft.public.dotnet.general
microsoft.public.vsnet.general

Note: There are many other .NET newgroups (use the first three "fields"
from the last two as templates when searching for them), but the above
ones should get you started.

Rick - MVP

"DizWiz" <di****@dizwiz.com> wrote in message
news:42***********************@news.wanadoo.nl...
Hi!,

Im am using the VB Express Beta2 but cannot figure out how to create a
subdir in the windows directory.

Code:

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?

Thanks.

Jacco


Jul 17 '05 #3
Thanks,

Will post my question in one of the groups.

Jacco

"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:V4********************@comcast.com...
Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET (including VB2003 and VB2005 which has
dropped .NET from its name) questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups for Visual Basic
.NET related questions...

microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.upgrade
microsoft.public.dotnet.languages.vb.controls
microsoft.public.dotnet.languages.vb.data

And these for more general .NET questions

microsoft.public.dotnet.general
microsoft.public.vsnet.general

Note: There are many other .NET newgroups (use the first three "fields"
from the last two as templates when searching for them), but the above
ones should get you started.

Rick - MVP

"DizWiz" <di****@dizwiz.com> wrote in message
news:42***********************@news.wanadoo.nl...
Hi!,

Im am using the VB Express Beta2 but cannot figure out how to create a
subdir in the windows directory.

Code:

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?

Thanks.

Jacco

Jul 17 '05 #4

"DizWiz" <di****@dizwiz.com> wrote in message
news:42***********************@news.wanadoo.nl...
Hi!,

Im am using the VB Express Beta2 but cannot figure out how to create a subdir
in the windows directory.

Code:

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?


I would assume you need
My.Computer.FileSystem.CreateDirectory(windowsdir & "\" & dircreate)

since recreating the windows directory itself is probably frowned upon.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ken Fine | last post by:
I want my application to maintain a directory tree based on months and years, e.g.: 2004 January file file file February file
7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
6
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
4
by: ThunderMusic | last post by:
Hi, My App must get the files *.Ext in AppPath\SubDir\. What's the best way to achieve this using .NET framework 1.1? thanks
5
by: DizWiz | last post by:
Hi!, Im am using the VB Express Beta2 but cannot figure out how to create a subdir in the windows directory. Code: Dim windowsdir as String Dim dircreate dircreate="backup"
23
by: sandy | last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory', within my class Directory (Can you already smell disaster?) Each Directory can have subdirectories so I thought to put these...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.