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

Open files

89
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 1829
Killer42
8,435 Expert 8TB
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
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 Expert 8TB
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
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
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 Expert 8TB
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 512MB
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:\testfile.doc")
GOODLUCK
ALI
Oct 11 '07 #8

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

Similar topics

1
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...
0
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...
10
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...
13
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...
7
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...
7
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...
14
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
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...
6
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...
2
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....
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:
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: 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:
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
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
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...
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,...

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.