Without opening Windows Explorer. I want to check for this from Word VBA.
Thanks.
EDIT:
This code works now:
Set WshShell = CreateObject("WScript.Shell")
If WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 0 Then
MsgBox Prompt:="In Windows Explorer, set the folder op...
I had MSMQ fill up on me the other day (forgot to turn off journalling on a queue) and saw in the storage folder that there seems to be different types of .mp files.
Some were p*.mp and are 4096K, and others are l*.mp and are 8K.
What are the differences between these files?
...
In my application I use a SaveFileDialog to pop up a Save As window. I have restricted in the file type section the file to be saved as .dat with the following code.
sfdialog.Filter = "Data Files (*.dat*)|*.dat*";
What I want to know how to do is make it automatically save with the .dat extension. Currently it just saves with no exten...
Which is the Recommended File Extension for rails view pages(2.3.2)
1.RHTML
2.html.erb
any significance in this.
...
Can we identify an application is how much bit ie 16/32/64 bit from its extension.
.com,.exe,.bin specifies anything like that?
...
I knew this once but I keep forgetting; How do I allow multiple filetypes in one filter entry of the OpenFileDialog?
Text files|*.txt // this is OK.
Text files|*.txt,*.text // how do I get this??
...
I would like to know the cleanest way of registering a file extension with my C++ application so that when a data file associated with my program is double clicked, the application is opened and the filename is passed as a parameter to the application.
Currently, I do this through my wix installer, but there are some instances where th...
I uninstalled Visual C++ (on Windows XP), but my c++ source files still have the VCExpress.cpp.9.0 extension (when I right click a file and go to properties it shows that as the file type).
How can I change it to what I had originally which was just the CPP type.
Thanks
...
If I create a new app, and associate with, say, the .xml file extension on a particular computer, when someone double clicks the .xml file, it will launch my app and pass the file as parameter. But Windows seems to know what other files have the ability to work with that file type. How is that set up?
Also, when I save a Microsoft Wo...
Say I have something like this:
new File("test").eachFile() { file->
println file.getName()
}
This prints the full filename of every file in the test directory. Is there a Groovy way to get the filename without any extension? (Or am I back in regex land?)
...
I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen some questions about this and the methods described to perform this can be resumed in:
Use registry information.
Use urlmon.dll's FindMimeFromData.
Use IIS information.
Roll your own MIME mapping function. Based on thi...
What file extensions are used most commonly by different languages? Please don't put source file names (like .java) but rather extensions that would be present in a URL for rendered pages.
Here is my (alphabetized) list so far
ASP Classic
asp
ASP.NET
aspx
axd
asx
asmx
ashx
CSS
css
Coldfusion
cfm
Erlang
yaws
Flash
swf
HTML
...
In a .NET/C# project, one of my *.exe files has a corresponding *.duo file. (I didn't set up the build system.) What is it?
Somebody suggested it was something like a user preferences file for the debugger, possibly?
...
When coding in java,
How to get the corresponding file extension if the mimeType of the file is known?
...
Let me start off by saying that I've got very little experience with web-development.
My question is simple, (taking SO as an example), how does the following work?
http://stackoverflow.com/tags/foo
http://stackoverflow.com/tags/bar
I've seen a lot of sites that do this, but I still don't know how this is accomplished (I'll be workin...
I want to write a small tool, that does the following:
When you right click on a file with a certain file-extension the Windows Explorer context menu shows an additional entry.
When you click this entry a certain EXE is launched with this file as one of its parameters.
I would like to use C#/.NET 2.0 for this. If it's not possible I ...
On a Linux machine I would like to traverse a folder hierarchy and get a list of all of the distinct file extensions within it.
What would be the best way to achieve this from a shell?
...
I want to apply a click() event to all of the links on a page when the href of that link points to a file with a specific extension. The list of applicable extensions is hovering around 30 and may grow a bit in the future (but will never be more than 100).
My first inclination is to structure the event binding like so:
$("a[href$=avi],...
Hi,
I am running a classic ASP website where my online users can attach files to the internal message system. But whenever they upload an attachment with more then 3 characters in the fil extension, the server gives me a 404?
Files like mypicture.jpg works fine, but files like mydocument.docx doesn't work?
Any suggestions?
Best regar...
I'm using Uploadify to upload an image to the server.
The image is uploaded, and placed in the temp folder of the web server.
Now I need to work with the file beore moving it to it's real location, and I have the following code:
// Get the filepath and filename from server temp dir
$sourceFile = $_FILES[ 'Filedata' ][ 'tmp_name' ]; /...