473,809 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open files

89 New Member
Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
Oct 8 '07 #1
7 1850
Killer42
8,435 Recognized Expert Expert
Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
A couple of questions...
  • What version of VB?
  • What do you mean exactly by "open"? Do you mean the same as if you selected them in Windows Explorer and hit "Open"?
Oct 8 '07 #2
shaiful
89 New Member
Hello, my VB 6.0
and open means just veiw the all files one by one from selected one directory, Thx very much.
Oct 8 '07 #3
Killer42
8,435 Recognized Expert Expert
Hello, my VB 6.0
and open means just veiw the all files one by one from selected one directory, Thx very much.
Sorry, but I still want to pin down exactly what you mean by, in this case, "view". Can you please explain what you want to actually happen?
Oct 8 '07 #4
shaiful
89 New Member
Ok Hi, Sorry for make u more Question. and many thx for attention. Actually I want to make a button on form and this will action after pressing that: i want want see my all files from directory c:\x\[ files .doc, .dwg, etc] will autometically display, I mean e;g: i can edit and read the .dwg files .... sorry again.
Oct 9 '07 #5
shaiful
89 New Member
Hello, again pls how to see the file "C:\test\x. dwg" it will start open its self, thx
Oct 11 '07 #6
Killer42
8,435 Recognized Expert Expert
Have a look at this thread - it explains how to use ShellExecute, which I think can start any type of file.
Oct 11 '07 #7
Ali Rizwan
925 Contributor
Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
Hi,
Use loop for opening all files and use this code for opening.
ShellExec("C:\t estfile.doc")
GOODLUCK
ALI
Oct 11 '07 #8

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

Similar topics

1
4120
by: yanivmad | last post by:
hi I like to ask if there any option to control the html files?!? I have some HTML files at my web site that use one "Help.htm" file for all the pages {I use the "window.open(.... " option at JS }, and I like to open only one file every time for all the files. I use "myFunc.js" javascript file for all the files that try to open the "Help.htm" file so I hava an 'Object' that hold the
0
2388
by: KevinGravelle | last post by:
Hello, I am running an Apache web server and my httpd configuration file is utilizing the aspdotnet_module in order to run an ASP.NET application. Whenever I try and open my existing web project, I get the error message: "Unable to get the project file from the Web server. Unable to open project 'WebApplication1'. The file path 'C:\Program Files\Apache Group\Apache2\htdocs\WebApplication1' does not correspond to the URL
10
32431
by: Grocery Clerk | last post by:
I know open() returns a file descriptor and fopen() returns a pointer to FILE. The question is, when do I use fopen() and when do I use open()? Could someone give me an example when to use one over the other?
13
8879
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to implement some way to enable downloading those files from the database which leads me to the following two problems: 1.) How can I create a file "in memory" as I don't want to create temporary files stored on my web server and
7
14628
by: Tyrone Showers | last post by:
I have a problem of getting the error "too many files open" and would like to trace my application. However, I have found nothing about how to display the current number of open files. Does anyone know what code is used to get the current number of open files? Also, is there a way to determine the number of open database connections?
7
2017
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking for sample code to open the folder and start grabbing files. thanks.
14
18567
by: padh.ayo | last post by:
Can C open (and keep open) two files at any given time? so, FILE *a, *b; a = fopen(argv, "r"); b = fopen(argv, "r"); ?
1
4708
by: kencana | last post by:
Hi all, I was wondering why I always get "failed to open stream: HTTP request failed!" error in either loading a normal or xml file. i don't understand why i can't get the whole result. the result i get is only some part of the respective url (the one i tried to load). The following is my php code to open the file: $file=...
6
8397
by: AMD | last post by:
Hello, I need to split a very big file (10 gigabytes) into several thousand smaller files according to a hash algorithm, I do this one line at a time. The problem I have is that opening a file using append, writing the line and closing the file is very time consuming. I'd rather have the files all open for the duration, do all writes and then close them all at the end. The problem I have under windows is that as soon as I get to 500...
2
4619
by: hharry | last post by:
Hello All, Does anyone know of a method to automatically detect if a file is corrupted ? Due to a failed backup process a number of files were corrupted. The files are mostly .xls, .doc, .pdf. When you try to open the file, a dialog box opens stating that the file cannot be opened. I need to log which files wont open properly, and I'm hoping there is a way to automate the process.
0
9603
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10643
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10378
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10121
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.