473,401 Members | 2,146 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,401 software developers and data experts.

Deltree in vb ?

I would like make deltree same as DOS, can I ??
Nov 20 '05 #1
2 3091
On Wed, 22 Oct 2003 09:05:26 -0400, facicad wrote:
I would like make deltree same as DOS, can I ??


For what OS? If it's Windows NT/2000/XP, you can just use RD with the /s
option to remove an entire directory tree.

To code your own, look into the System.IO namespace. Particularly at the
Directory, DirectoryInfo, File, and FileInfo classes. They contain all the
methods you need.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #2
* "facicad" <ca*@norclair.com> scripsit:
I would like make deltree same as DOS, can I ??


'Directory.Delete(<path>, True)'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

6
by: Derek Fountain | last post by:
Given the character string "0x00A1B2C3" arriving at sys.argv how do I convert that to an integer which I can do some math on?
3
by: news.microsoft.com | last post by:
Hi folks, I got samples on http://www.aspfaq.com/show.asp?id=2059 and runs ok to dir ms-dos command, but to others commands like del, rd, deltree, etc... it has not had any effect, even it has...
4
by: Gérard Leclercq | last post by:
Can't find exemple. How can i delete a complete folder including subfolders and files in the subfolders. Or do i to delete one by one ? Gérard.
12
by: NickName | last post by:
Hello, How could I find the primery key(s) if any in a known table? Access 97 help doc seems to suggest it's tied to Index, so, it's sort of along the line of tbldef.Indexes(0).Index(0).Primary...
8
by: zhiwei wang | last post by:
I remember that there is a function that could invoke shell command such as "rm" "cp", directly in .c file. But I could not recall its name, and I googled with nothing meaningful. I vaguely...
13
by: maadhuu | last post by:
hello everybody, i have 2 doubts . 1. is this always defined ?? int i =10; int a = i++ + i++; and also, i tried this in gcc, answer was 20, so what the sequence points for evaluation of...
5
by: frozenade | last post by:
Dear all.. I've written this classes but I cannot get for desired result. class firstclass { var $tmpdir; function definetemp() { $this->tmpdir = "tmp";
3
by: sophia | last post by:
Dear all, The following is a simple avl tree program which i have found in my book, now my question is how good is tha balancing method used in this program, can any one give a general (easy to...
1
by: ziycon | last post by:
I have a batch file and all it does is stop a service call the deltree file to empty a directory and the start the service but its wont start the service back up. The first two lines run a fine,...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.