o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Opening a file with its app -

I want to be able to open a file from within my VB app, based on the file's extension (e.g. if the file is file.doc,the file would open in Word). This is basically the same behavior you get if you click on a file who has his extension registered in the file types.

Shell and CreateProcess both require the app name (in my example above, I'd have to use 'word.exe file.doc'). I'd like a call that would simply tell Windows to open the file with the app that it thinks should be used with that file.

Any ideas? Thanks.

 

Opening with a file -
I have a program with a particular file type associated with it. Currently to open these files in my program the user must first open the program, then go to load on the menu, and select the file. Is there any way in VB to get the file to load in by just opening the file (like opening


Opening a file with the default file association -
anybody have some code there for opening a file with it's default program? for example opening a .doc file with msword or a .htm page with the default system browser ? tnx )


[2008] Opening any File and manipulating it -
Hi, I was wondering is there a way to open *any* file (this part i know it can be done) witht he default application with VS 2008 but not only opening it, but to open the file at a specified page. Let's say regardeless of whehter i am opening a word file, pdf, text file I want to


File Opening Progress -
I am opening a few files (400K to 1200K) from a floppy disk, and so they sometimes take quite a while. How can I show a progress bar that indicates how far along the file opening is? Thank you for any help.


confirm file conversion -
hi all, i am counting lines in a word file, i am made invisible the background opening of the file, but still it is opening and closing. also before opening each of the word file, a window is displaying "Confirm File confirm", in that it shows some list of file formats such a


Opening file from web browser -
You know how with RealPlayer, you click on a link to a ram file and it downloads it automatically to a temporary folder and runs realplayer, opening the file? Well, is this possible in VB? What I want is to have a link on a web page which when clicked will automatically download to a t


[2005] Self opening file inside ZIP -
Hi, Im looking for the best method of automatically extracting a webpage file from a zip and opening it up on the users pc. I have 5 files in a zip file and when the user clicks on xxxxxx.zip i need only the .htm page to open up locally. Is this possible or is there any kind o


"streaming" a file without opening it... -
I need to know if there is a way to "stream" or examine a file without opening it in Visual Basic. I'm trying to look at the contents of a file that is already being used by another program, in a richtextbox. Is there a way to do this. Opening wont work of course because of a


[2005] Opening and Writing to an Existing CSV File -
What is the code for Opening an existing CSV File and then appending data to the end of the file. Thanks,


Opening an external file -
Hey everyone, this is probably a newbish question but I havent gotten into opening anything out of the vb program except with ms office stuff. I have a pdf file which I want to be able to open, that is all. How would I accomplish this? Thanx all for the help!


Print a file without opening it -
Hi all, How can I print a file without opening it. For example, We can right click on any file and by clicking print it prints to the default printer. I want to accomplish this through code. Please help me. Thanks in advance.


Getting a file from internet[.txt] -
Need few examples. 1)Opening a file from the computer (i have seen meny ways and i need good one and working one) 2)opening a file from the internet 3)every second that the file is changed in the text in it i want refersh i want to build something like "mirc" so


Detect file is running or opening -
Is there a function that it can detect a file (eg. a exe or a txt file ) is running or opening ..... thx for your reply !!


Opening a file as hidden -
Hi, I have a file that because of data validation reasons, needs a source file to be open while it is open. I heard something about "opening a file as hidden" and that it could be a good way to do this, but I haven´t found much information about it. Any links or info? Than


.Doc files are not opening -
hello, this problem started few months back, but now it is really irritating me since i have to work a lot now. when i dbl-click a Doc file, MS-Word gets started but the file remains unopened. i can only open file via 1) File->Open menu in Word, or by 2) Start->Open Off


File: search - find - open -
How do I go about finding a file and opening it (.exe) using a command button and also opening web pages using command buttons. thnx


VB auto splitting -
Ive had this problem for as long as Ive used VB, never could really seem to get around it so usually avoided it. Anyways, im opening a file and use the EOF command to get all the text within the file (the file type is not important, but say im opening an EXE). Well, when opening in


Opening a batch file on execute -
Can anyone please give me the code or any assistance with opening a batch file upon Form_Load()?


can not access excel file **RESOLVED** -
Hi all I having a excel file which I want to read, if I give only file name it is not opening. But it is opening, if I give full path. Both project file and excel file are in the same folder Here is the code I am using Set XlApp = GetObject("data.xls") Help is


Preventing Word from opening downloaded .doc files -
Does anyone have any ideas on how to prevent a Word file (or Excel or Acrobat or whatever) from opening inside the user's browser when using IE? I want to be able to force the user to save the file, rather than automatically opening it, on a case-by-case basis. That is, sometimes I w


Opening Hex -
How would i go about opening ANY file on my computer and viewing the Hex, maybe in a textbox or something? plz help thanx


VBA - opening excel and word file -
I am having trouble opening an excel file and word file from a command button from my access application. i have trouble numnerous steps and can't seem to get this process to work.


Run macro on excel file opening -
Hi guys, I have prepared small macro refreshing all pivots in workbook. I would like to run this macro using message box procedure on file opening. Could anybody help me how to make macro run on start up? Thanks Boris


Opening a file to read with just an IP -
I have a machine I need to connect to but it doesn't even have a name on the network. I know its IP address and have access to it. Is it possible for me to use VB to open a file on that machine for reading? The machine is a linux box and the opening machine is a windows 2000 PC. I k


opening a file as binary. -
Hiyas, I need to open a whole file for binary, and add each byte to a text box, but when I try the EOF method it just seems to keep going after the file is done, and get more binary, and also it is incredibly slow method of opening the file, can someone tell me how to get the whole


Opening password protected access database using ADO -
I am sick and tired of this question. I have tried all possible solutions given in my posted messages or others. I still get an error about a missing workgroup file. If some one has tried opening a password protected database, can you please upload the project file and database file. T


Opening problem -
Ok when opening a file how can we pop out the open so it chan choice what file to open and i want that the default folder that it start in it is the current folder that the exe file was open in it... and finaly that we can only see the *.dbl files per default and *.* in extra.......


Problem opening file in C -
Hello all I have a file with unicode characters in the filename. However, i cannot open the file using normal file opening code in C. Yes I can simply rename the file, but I need to know how I can open the file in C code without renaming it, as there are many other files that I have w


How to copy, paste and rename a file without opening it -
In my application i need to search for a file in a special folder, make a copy of it, save it to a desired location and then rename it, (or first rename it and then save it) without opening the file. How can i accomplish that? Thanks


Help opening Excel file -
Hi Everyone, I am having a hard time opening up an Excel file. Does anyone know what is wrong with my code. Set objWorkBook = objExcel.WorkBooks.Open (C:\My Documents\TEST2.xls") I have a reference to the excel program but VB doesn't seem to even recognize the program.


Scannin BMP -
hi, i am using Image Scan control to scan a signature and i store it as a bmp file. when i double click the file it is opening in paint in the winNt workstation. but when i double click the file in a win98 machine, it is giving a message "Bitmaps must be greater than


progress bar to show file opening -
Hi I’ve never used the progress bar in any of my projects but I’ve been asked to create a simple application and I’m not sure how to go about it. Basically, all I want to do is trigger my application .exe file from a link in an email which launches a very large .pdf documen


Outlook Backup without opening outlook -
Hi all, can anybody help me? i want to take backup of MS Outlook but without opening it. because i have already that code to take backup of outlook bu opening it & export it in a pst file then copy it, but i dont wan't that because my program will automatically take backup o


Opening text files for reading -
Hi, I am opening a text file so I can read the text as below, sFile = "Cross_Reference.INC" lFile = FreeFile Open sFile For Input As #lFile Do While Not EOF(lFile) ect... Now the problem is that the text file will always have the .INC extension but not alwa


Opening folder and SELECTING file/directory -
Opening a folder and the selecting a file inside it. Theres a function in limewire that does this if anyones ever used it. Selecting as in just highlighting and moving to that position i know its possible, just how? ty


opening saved .msg file in Outlook -
I'm developing an Outlook application using VB6. How do I go about opening a saved .msg file on the hard drive using the Outlook object? Any code snippet would be appreciated.


opening a certain file in an exe -
I know this has prolly been asked 100s of times before, and maybe it's a brainfart, but when doing a search, i can't find the answer to my question so: i was wondering how you would open a certain file type in a certain specified program using VB I know you can use the shell to li


printing a file w/o opening it. -
Hi! I have a web page that has on it many pdf files. I'd like to know how can I have a button that the user can choose to print all pdf files without opening them ? Please let me know in which language it is the easiest to write (javascript, vb...) Thank you very much.


ProgressBar at file open -
Dear all, I want to use a progressbar when I read a very large text file into memory. To set its max property I must know beforehand the number of lines in the file (as I'm reading in it by means of "Line Input" statements), so the way I've been doing it so far is opening


Background Process and capturing application opening -
Hello, How to capture an "application opening" (e.g. Internet Explorer opening) event by a VB application? Something that anti-virus applications do - they keep running in the background, capture a file open event and scan them. Thanks for your time, Manish