##vbScript - Identify File by Perceived Type Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. There are times when you want to operate on all files of a given type. For example, you may want to enumerate all files in a folder or a drive that are recognized by Windows as video or audio. But how would you do that? There are so many video file types that it would be difficult to test for even the more common file extensions. Better to ask Windows to do the identification. The Windows Registry contains an key …

Member Avatar
+1 forum 0

Hi, I have built a shell extension handler, using this as a template: https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a In this instance, it registers with a ".ts" extension: hr = RegisterShellExtContextMenuHandler(L".ts", CLSID_LNtoALL, L"CppShellExtContextMenuHandler.LNtoALL"); The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts files is not updated), and on another (both using Win7 x64) it does. I tried 2 others handlers, with '.mkv' and '.mp4' extensions (using of course different CLSIDs), and the results are random. Some work on a given PC, and some not. I have no clue what prevents one handler …

Member Avatar
Member Avatar
+0 forum 1

What do you think about domain extention like **.com, .org, .net etc.** touch any SEO value? Thanks for your time.

Member Avatar
Member Avatar
+0 forum 7

>Take Heed There are lots of things to be aware of with the Windows Registry. In most cases the best thing to be aware of is that ideally you should avoid playing with it at all costs. Alas, we are what we are and we do what we do. My advice to you is to make a back up of your registry. Remember though, values are read and written continuousley without our knowledge, and reverting to a backup made 10 minutes ago may not reflect your current systems settings so be careful. >Backup Your Registry Start RegEdit, Search for RegEdit …

Member Avatar
+0 forum 0

Sometimes you want to add a little functionality to an existing class but you don't want to go to the trouble of sub-classing. A technique that you can use is known as **Extending**. For example, I frequently use regular expressions when working with strings. Wouldn't it be nice if strings supported regular expressions directly, but because they don't I have three choices: 1. sub-class the string class and add the functionality 1. write a separate function that takes a string and a regular expression as parameters 1. Extend the string class Extending can only be done within a module so …

Member Avatar
Member Avatar
+1 forum 1

Hi, is more than a week that i try to resolve this error on my app but i can't... The problem is the following : I have a menu and submenu table and i show this records in this mageMenu.chstml (list of menus and submenus to generate the menubar of my site) called in my _Layout.cshtml THIS IS WORKING FINE What is not working are all the pages where the tables called are linked to the tables menu and submenu... (Example My table Magazine and the table FORUM both have a menuID and submenuID), when i run the pages with …

Member Avatar
+0 forum 0

First, to explain what I want to do: I have a folder structure like this: BSDS300\images\test\ -which contains JPEG files, and some other files(only .jpg files are of interest) BSDS300\human\color\ -which contains many folders, in which I have .seg files with the same name as the .jpg file Example: BSDS300\images\test\3096.jpg BSDS300\human\color\1110\3096.seg BSDS300\human\color\1109\3096.seg What I want is to generate a text file in the first location with the same name as the .jpg file, which will contain the absolute paths of every location that contains a .seg file(with the same name) what I've tryed so far, is something in the command …

Member Avatar
Member Avatar
+0 forum 1

Heelloooo good day. Thanks for seeking to help. I am creating a Java program(obviously). At the end of my work I wish to install it as (a)an .exe file. However I wish that after its installation, file type association would have been setup automatically(I phrased that latter part of the statement like that, because I'm not sure if file association can be coded, or if it must be accomplished via other tools). I have ruled out JWS(Java Web Start) though. SO once again: 1. Program must be a(an) .exe file. 2. And the installation process should seamslessly create the file …

Member Avatar
Member Avatar
+0 forum 6

Oh boy They ust be tired of me now. My trouble: I have two ArrayLists of custom classes. ``ArrayList<Subject>` **a**` ``ArrayList<Student>` **b**` Within those custom classes are other custom classes which themselves have primitive data types as well as an ArrayList of other custom classes. It's a big circus going on. How do I XMLEncode those two ArrayLists, **a** and **b**, so that all the information within them branching all the way down, is saved? (Also, is it possible to save both of these to the same file please?)

Member Avatar
Member Avatar
+0 forum 4

How to create extension module in magento ?

Member Avatar
Member Avatar
+0 forum 1

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly processed data (what I mean is the data from the database plus all related data created by way of data manipulation). 2. the last view of the program? (What I mean is, when the program is restarted I want it to display the last thing the person saw; GUI and …

Member Avatar
Member Avatar
+0 forum 22

Hi, I have a extension in my opencart store that uses a .csv file to import data into products. The .csv file is a stock inventory list from a tyre manufacturer. The extension uses a string value of the image filepath that get inserted into the database. The issue I have is that the image name in the inventory doesn't include the file's extension. There are around 5000 products and I have all the images ready uploaded in a directory on my server. I could go through and add them into the csv file manually but the stock inventory will …

Member Avatar
Member Avatar
+0 forum 8

Hello Community, I was wondering if there is a way to goto the direct link of a file (eg. http://example.com/files/test.txt) and for it to download insted of loading and displaying the file. I want to do this for every file in the "files" folder and only that folder.

Member Avatar
Member Avatar
+0 forum 2

*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. In this application it processes data(duh!). It stores data in both single and multi-dimensional arrays. I desire to store these data-filled arrays in a file, along with other elementary data types. And the file that I want to store it in, must end with the extension .smproj (as an example …

Member Avatar
Member Avatar
+1 forum 4

Hi, not too sure if Web Development is the right place for this but anyway: I've never done any web development and I have never created a Firefox extension either but here's the thing: I am making a project for myself, a Java (not JavaScript!!!) program that can add, change and search for food recipes in a SQL database. Since many recipes are found online, I'd like a quick and effective way to swiftly add a recipe to my database. I haven't really figured out a good idea how to do this in the best way though, I'd preferably have …

Member Avatar
Member Avatar
+0 forum 1

Hi, PHP 5.2.17 (cli) (built: Sep 1 2011 17:22:41) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies [root@ip-10-130-243-182 mnt]# yum install php-pecl-memcached-2.1.0-1.el6.remi.x86_64.rpm Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository addons is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirror.usonyx.net …

Member Avatar
Member Avatar
+0 forum 1

Please help me, I want to enable ajax extensions in my tool box. This is my first time I want to use ajax extensions. When I click show all on the toolbox, it show the ajax extension panel but the control can't be drag to the form, please kindly help me out I am building website in ASP.net using visual studio 2010. Thanks

Member Avatar
Member Avatar
+0 forum 4

This tutorial is about extension methods in c# **What is an extension method** Sometimes it is necessary to add functionality to a library for which you do not own the source code and where using inheritance to subclass functionality is not viable. This problem can be overcome with the careful use of C# 3.0 extension methods. They allow you to extend new functionality for existing data types, that includes classes, structure or interfaces, without modifying the code of the type itself. Introduced in the version 3.0 of the framework, before this you could modify the class only by inheriting from …

Member Avatar
+0 forum 0

Hello Daniweb, I need to write a program to change the extension of all the files in a folder from a certain extension to another. My code is shown below, however, I have one problem: i.e. Say we want to change all files with the extension "*.tx" to "*.txt" but there are two files of the same name but one file ends with "*.tx" and the other ends with "*.txt" ****************************(in the folder: one.txt and one.tx)******************* Now I have to rename the "*.txt" file after it has been changed to the "*.txt" file...**** How can I do this correctly and …

Member Avatar
Member Avatar
+0 forum 10

Basically what I want to do is when the user browses and finds the file he wants to add the extension to I use a button click to add a .NOPE extension or something like that. I have no idea how to get it to find the end of the text and add that though. Help would be greatly appreciated!

Member Avatar
+0 forum 0

Hi again, Does anyone know how to change file extension? Please help me. Thank You

Member Avatar
Member Avatar
+0 forum 2

Hi all, I apologise in advance if this is too simple, but I've been searching around for a good hour or two now, and I can't quite get my head around this. Basically, I'm looking to teach myself Python (3), and one of the things I'm trying to do is put together a simple script that could recursively search an entire drive for a file of a given extension. I've been looking around, and figured that I'll probably need to use os.walk to recursively search the drive, along with finding other snippets here and there about what I should do. …

Member Avatar
Member Avatar
+0 forum 5

Hello EveryBody i want to change a file extention property in visual basic 6 Example; i have a File test.txt or test.jpg what we want ? and we use a command botton and two textbox Text1.text = "C:\test.txt" 'Textbox 1 is my file path Text2.text = ".pdf" or ".psd" ' textbox 2 is my extention field beacause any time we want to change extention. psd,pdf,tmp,jpg Etc change Textbox1 file path file extention in textbox2 Extention When i use orignal extention then my file work.

Member Avatar
Member Avatar
+0 forum 2

Hi, I have this fileupload in my program and I want to set it's extension to .xls only, Is it possible? If yes, how can I set it so it's file filter will only be .xls? Thanks

Member Avatar
Member Avatar
+0 forum 2

I just want to know about the new extension in Access 2010. I need to create a database with .mdb and I can't do it with Access 2010 'cause the new extension is .accdb or something like that (I don't remember :$) As you can see, I don't use it too much but I need to create a .mdb database now so my question is: How do I change the extension? I tried to do it in the save file dialog, but there's no option.

Member Avatar
Member Avatar
+0 forum 1

I want to get the [B]file extension only[/B] of a file. e.g. "myfile.jpg", I want to put in a variable the string ".jpg". How?

Member Avatar
Member Avatar
+0 forum 1

Hello, I need to write an extension for Chromium Browser. First i will just write a code to change the proxy. After that i will write all the extension. But i could not use proxy API. I write this code on the background page of extension but it did not work: [CODE]<script type="text/javascript"> var config = { mode: "fixed_servers", rules: { httpProxy: { port:"8080", scheme: "socks5", host: "1.2.3.4" } } }; chrome.proxy.settings.set({value: config, scope: 'regular'}); </script> [/CODE] Even i give true values for proxy host and port number (which i try it at the same time from Firefox if the …

Member Avatar
+0 forum 0

Hi, I was wondering whether it is possible to use a parent class' properties without calling its constructor. In the following example: [CODE]<?php class Shop { public $location; public function __construct($location = ''){ if(!empty($location)){ $this->location = $location; } else { $this->location = 'a place far far away'; } $this->location .= '. '; echo 'Shop constructor has been called. ---- '; } public function check_stock($item){ echo 'There are still quite a few '. $item.'s remaining.'; } } class Item extends Shop { //public function __construct(){} public function find($item){ echo $item . ' can be found at '.$this->location; $this->check_stock('Bed'); } } $shop …

Member Avatar
Member Avatar
+0 forum 2

Does anyone know what the *.!11 extension is? I'm getting hundreds (over 1100 an hour ago) of files with numeric filenames and the !11 extension. I opened it with notepad++ and mostly it was code, but "Sketchpad" was in the text. I have no such application, so far as I know.

Member Avatar
+0 forum 0

Hi all, I'm making some changes to a google chrome extension I made and am having some trouble. Heres my code on a content script page (removeAttr.js) : chrome.extension.sendRequest({greeting: "whitelist"}, function(response) { var whitelist = response.whitelist; console.log(response.whitelist);//working }); alert(whitelist);//alerts "undefined" How do I acess the whitelist variable from outside the sendrequest() function? Iv tried saving it to a window.var variable with no luck. Iv tried creating a div and assigning it's innerHTML as the whitelist variable and getting it later with no luck. The fact that it's a chrome extension complicates things because i dont actually know if i can …

Member Avatar
Member Avatar
+0 forum 7

The End.