473,563 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to close all the opend files in vb6

1 New Member
in the run time i want to close all the opend files if there is. i couldnt find which file is not closed. when i run the application frirst time it should delete a folder which folder contains some files and subfolders. when i execute first time it doesnt give problem. but in the runtime when i execute second time. it doesnt delete the above folder. so that my application doesnot execute. so any on e please give me some solution for this.
Nov 1 '06 #1
1 8574
Killer42
8,435 Recognized Expert Expert
in the run time i want to close all the opend files if there is. i couldnt find which file is not closed. when i run the application frirst time it should delete a folder which folder contains some files and subfolders. when i execute first time it doesnt give problem. but in the runtime when i execute second time. it doesnt delete the above folder. so that my application doesnot execute. so any on e please give me some solution for this.
If you issue the Close command without a file number, it closes all files opened by this application. Don't know whether this is what you're after. And it will cause an error if you subsequently try to access any of these files without first opening them again.
Nov 1 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5487
by: Alpha | last post by:
I have a Window based application that shows up still running in the task manager when I close it. It reaches the "this.close" statement and then it stops at the "}" at the section of the following code after the "Application.Run(new VMSMain());": static void Main() { Application.Run(new VMSMain()); }
7
2223
by: mg | last post by:
Once opening WebForm2 from WebForm1 using Response.Write("<script language='javascript'>window.open ('WebForm2.aspx','two','menubar=no');</script>"); how can I close WebForm1?
1
1310
by: Veksi | last post by:
Hello, I am trying to create my own macro to working application dialog box. I find dialogbox of application on these code: Sub DMEU() 'How to find FindControl ID for FindControl 'and Execute "Database Merge Export Utility"? 'ID: 39812 Dim myCommand As Object Dim a
1
2455
by: Lars B | last post by:
Hey everyone, I've been working on a C++ program that uses several threads to read data from a large file into several buffers at speed and pass them to different classes at different rates. I'm working in linux using Eclipse as my editor and a simple makefile to compile the files. My problem is that my main reader class (FileReader:- a...
2
1551
by: Nicholas | last post by:
Hello, I'm new in Javascript and it seems I'm a bit stuck so if someone can help. The problem is 4th button / function. I dont know how to talk to the opend window, the thing with focus i wrote doesen't work so i didn't wrote code for randomizeing location (this i know how to do). Did i do something wrong? window.opener works fine form...
44
4966
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file processed by this script, where the concerned tmp file is only actually written to when PythonWin is closed. In other words, after I run this script, one of...
1
1226
by: Tempalli | last post by:
CAN DATABASE OPEND FROM THE ACTIVE FOLDER PATH WITHOUT DEFINING SUCH LONG PATH. KINDLY HELP ME. ANANTH ;------------------------------------------------------------------------------- Dim Path As String Dim Rs As DAO.Recordset
0
2323
by: Mark Gold | last post by:
Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close. It seems to hang on the command. When we open the application an peruse the screens without opening up a report (using crystal reports), the...
10
1233
by: Miro | last post by:
I have created myself an issue, and perhaps my idea wasn't as bright as I thought it was originally. If someone can help me figure out what the correct train of thought should be - or if there is a solution to this one. I created a dummy mdi app. In the main form ( frmMainScreen ) I created a variable as such: <written in notepad to trim...
0
7579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7877
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7631
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6238
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5479
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.