Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: How to delete folder in my local drive
Topic Summary:
Created On: 18-Oct-2007 07:40
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 18-Oct-2007 07:40
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hi all 

Can any one suggest me how to delete folder in my drive.....

I have a folder with name 'test' under 'D:\' having files 123 and 456  how can i delete the folder D:\test

as i know that by using deleteFile filename i can delete the files but i need to delete the folder also.

Can any one kindly give me the answer ......

Report this to a Moderator Report this to a Moderator
 18-Oct-2007 07:51
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Attached is something that works for me, but it is tied to your Windows setup. Essentially, you use the 'system' command to create a command shell with cmd.exe, within which you run the command to delete the folder. The function here deletes the entire tree named in the passed parameter.

The same principal works for pretty much anything you can do in a command shell.

Of course, if you're running under Unix, I've been of no help at all (but then why would you have a D:\?)

Paul.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 18-Oct-2007 08:02
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Thank you Paul for your response....

I tried with the code which you have posted it is working fine...

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.