Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.323 problem

Status
Not open for further replies.

infinitelo

Programmer
Mar 7, 2001
319
I need to open a series of files in explorer, the files are named with extention mdd (month day day) all goes well and fine until march 23rd. (havent checked all possible dates), other than renameing or copying the files is there a way to open .323 files?
(error msg internet telephony)

wsshell.run "explorer filename.323"


if it is to be it's up to me
 
i dont understand what you mean by 'open'
i take it if you run explorer with param of a file it will choose the default 'open' method in the file associations, so if your 323 or any other number file is associated with mspaint.exe it will 'open' it in paint.

hmm now i am getting you, just tried it myself.
what functionality if explorer providing you that notepad, word, excel, IE wouldnt give you?

hmm but no, i dont know how you can override a file association when calling explorer from a shell passing a file as a param.
 
Thanks for the respond. Some of the files are plain text others are html. The files open fine in notepad, but viewing html is not very useful.

i didnt really want to copy the file as that would slow things down. i onder if a link would have the same behavior.


if it is to be it's up to me
 
can you tackle the problem at the source? i.e. not have the file extensions messed around with? keep them as txt or html, that way your script can read the file extension and explicitly open them in notepad of IE.

alternatively i think you are stuck with opening each file with a text stream object and checking internally if it is a HTML file and then explicity opening them with notepad or IE
WshShell.Run(notepad.exe or ie etc

i guess it all stems from the design of a file extention, i.e. is should be used to identify the file 'type' ;-)
 
Have no control over the file extentions.
plain text looks fine in explorer.
i just need to open the file in explorer.
need to try the link thing when i have a little more time.


if it is to be it's up to me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top