494 Topics

Member Avatar for
Member Avatar for Reverend Jim

###Subclassing python objects Sometimes you want to add just a little more functionality to an existing python object. You can do that by subclassing it and adding on the missing parts. This example is based on a really mindless game of solitaire I used to play as a kid. In …

2
224
Member Avatar for Reverend Jim

I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, I am limited to streaming files in the mp4 format. Fortunately, ffmpeg allows me to convert other formats to mp4. …

Member Avatar for gladisfogson
1
2K
Member Avatar for Reverend Jim

I posted a question last week on Microsoft Technet and during the resulting discussion the following was posted: >VBScript will be gone in the next version of Windows. Almost all references to VBScript have disappeared from MS sites. In all the columns I've read about what's new and what's being …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Reverend Jim

As I continue my conversion from vbScript to Python I am finding the gotchas. For example... A lot of my utility scripts take a file name or a file pattern as a parameter. My script, bitrate.vbs, for example allows me to invoke it as bitrate file bitrate pattern Technically file …

2
1K
Member Avatar for Reverend Jim

vbScript - Extending Application Functionality with vbScript and AutoIt Sometimes you'll find that one of your favourite applications is missing some useful functionality. For me, it was FastStone Image Viewer. I've had to scan a large number of family photos to convert everything to digital. Rather than scan one photo …

1
3K
Member Avatar for Reverend Jim

vbScript - Create a Log File Using vbScript Classes Before I retired I was responsible for most of the corporate data plumbing at our control centre. All of the plumbing was written in vbScript. As any maintenance programmer knows, log files are a vital key in identifying and fixing problems. …

0
3K
Member Avatar for Reverend Jim

##vbScript - Run an External Program and Capture the Output Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. When you want to execute an external program for a particular result (such as resizing an image, as shown in a previous snippet) you can simply use …

Member Avatar for Reverend Jim
1
12K
Member Avatar for Reverend Jim

Over the last few days I have been converting old video files from avi to mp4. I've been doing this using the command line version of DivX. This is the process behing the DivXPro GUI and it is named `DivXEngine.exe`. Converting video files takes a big hit on the CPU …

1
2K
Member Avatar for Reverend Jim

##vbScript - An Application to Modify srt Subtitle Files Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. So far I've posted either functions/subs or code snippets to illustrate a technique. This time I am going to post a complete application. First, a few points. 1. …

0
856
Member Avatar for Reverend Jim

##vbScript - A Multi-column Sort With Minimal Coding Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. A previous post dealt with sorting. The code easily handles sorting simple things like lists of words, lines of text - cases where you only had to compare two …

0
906
Member Avatar for Reverend Jim

##vbScript - Some Useful String Functions Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. vbScript provides a number of functions for manipulating strings. I find that a few more simple functions would have made things a lot simpler. For example, I find myself checking to …

Member Avatar for SN Technologies
1
1K
Member Avatar for Reverend Jim

##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 …

1
936
Member Avatar for Reverend Jim

##vbScript - Get Drive Letter by Volume Label Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. I have all my computers partitioned with two partitions. The drive letters are C (OS and applications) and D (user data). I use Macrium Reflect to take monthly full …

1
4K
Member Avatar for Reverend Jim

##vbScript - Browse for Folder or File Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. Some scripts need input (other than from the command line) from the user. This can be read from the console (StdIn) or from a pop-up textbox (InputBox). This is fine …

0
14K
Member Avatar for Reverend Jim

##vbScript - Convert Integer to Binary String Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. vbScript has a number of functions for converting from one type to another. These functions are named C<type> as in CInt (convert to int), CDbl (convert to double), etc. There …

0
4K
Member Avatar for Reverend Jim

##vbScript - Sorting With and Without Code Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. Sorting is something that must be done from time to time. I'm going to examine three ways. The first is the well known (at least by name) QuickSort method. Rather …

1
1K
Member Avatar for Reverend Jim

This is the first in (hopefully) a series of posts about vbScript. Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. My wife and I take a lot of pictures. Naturally, we end up sending pictures to friends through email. I find it is unnecessary, and …

2
1K
Member Avatar for Reverend Jim

##vbScript - the basics My plan is to post a series of hopefully useful and informative vbScript Functions and Subs. I started writing up my first code snippet and found that I was taking too many side trips to explain things about the vbScript syntax and language so I decided …

Member Avatar for Reverend Jim
2
2K
Member Avatar for Reverend Jim

This code generates an ascii maze of up to size 30x30. If you try to generate a larger maze then you will likely run out of stack space. There is no way to increase the size of the stack in vbscript. Each cell in the maze is represented by a …

Member Avatar for Reverend Jim
0
608
Member Avatar for Reverend Jim

I've been using GenuTax since 2013 to file my Canadian tax return. It's provided free and does the job nicely, but it misses one feature. Up north we can do pension splitting. That means I can offload some of my pension income onto my spouse, hopefully putting us in a …

0
317
Member Avatar for Reverend Jim

Over the years I've seen a lot of discussion (and several implementations) of the Quicksort algorithm. Most of what I have seen, unfortunately, lacks sufficient commenting as well as meaningful variable names. Hopefully the following vbScript code will more clearly show how Quicksort actually works. A couple of incidental notes: …

Member Avatar for Reverend Jim
1
2K
Member Avatar for Reverend Jim

An often underused control from vb.Net is the FolderWatch control. But sometimes you need to throw something together that doesn't need a fancy GUI. Or perhaps the task seems too trivial to go to the hassle of coding it up in vb.Net (or C#). Because the FolderWatcher is built on …

1
1K
Member Avatar for Reverend Jim

I just posted a code snippet [here](https://www.daniweb.com/programming/code/515601/vbscript-implementation-of-quicksort) and noticed a couple of problems. 1. No matter how I try to fix it, the frst line refuses to display properly indented. 1. The few lines of code that I included in the top window, even though properly indented, refuse to display …

Member Avatar for Dani
0
918
Member Avatar for Reverend Jim

Does anyone know the function and origin of the wireless profile, bungle4? I've been cleaning up my numerous vbScript files and when I tidied, then tested Metered.vbs, it produced the following: D:\>metered Profiles on interface Wi-Fi: All User Profile : bungle4 All User Profile : mynet Metered.vbs is a script …

Member Avatar for Reverend Jim
0
512
Member Avatar for Alexis_5

could someone please take a look at this and let me know how to fix it. What I would like to happen is when the dropdown option is selected it displays the buttons for that option. and then when the button is clicked text set for that button displays in …

Member Avatar for Shulc
0
588
Member Avatar for Reverend Jim

A while back I came across an article that mentioned genetic algorithms. For those unfamiliar with the term, simply put, rather than finding a solution to a problem by iterating over all possible cases, a genetic algorithm attempts to find a solution by starting with a guess, then generating a …

Member Avatar for Web_4
2
1K
Member Avatar for Thomas_32

I have a lot of simple VBScript files that were encrypted. I have lost the originals. The code still works within the intended platform, but now I need to do some maintenance. I used a free, vendor-supplied utility that compiled the VBS into a plug-in, but I don't know what …

Member Avatar for Reverend Jim
0
521
Member Avatar for moh_2

hello brothers, I have this VBScript program: Set WSHShell = Wscript.CreateObject("WScript.Shell") Set FSO = Wscript.CreateObject("Scripting.FileSystemObject") Set EnvVar = wshShell.Environment("Process") tBestand= EnvVar("USERPROFILE") & "\Desktop\Items Numbers.txt" Set Bestand = fso.createtextfile(tBestand,2) For x = 1048639472 To 1048640474 Bestand.WriteLine("Item Number is=" & (x)) Next Bestand.close WScript.quit The Output is: (about 1002 lines). Item Number …

Member Avatar for rproffitt
0
321
Member Avatar for kes166

Hello, I've been working on learning VBScript to make a few useful scripts to work with WinNT and make a more user friendly interface when searching for users on a domain. While doing so, I discovered something interesting about arrays and I'm hoping someone could explain if it's just the …

Member Avatar for Reverend Jim
0
318
Member Avatar for Jhovyn

I create DTS Package and assign variables on it in VB6.0...I need to check if my connection to my database is successful using DTS package that I created..I got an error message "Argument not optional"...Please help me Module 1 Option Explicit Public goPackageOld As New DTS.Package Public goPackage As DTS.Package2 …

Member Avatar for Lee_14
0
523
Member Avatar for Reverend Jim

I thought this was only me, but apparently there are other users who have noticed that somewhere in the last few Microsoft Updates, the option to set a wi-fi connection as metered has been removed. Fortunately, you can still set/unset this option from the command line. For details, and a …

1
234
Member Avatar for gotschai

hi, I am fighting around with setting a property on sound device via registry edit. I know its located at [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\{ab701278-c48d-41cd-b68c-8466465f06e4}\FxProperties] i found that the setting is "{fc52a749-4be9-4510-896e-966ba6525980},3"=hex:0b,00,8f,f0,01,00,00,00,ff,ff,00,00 what changes is ff,ff to 00,00, that is ok, but also the 3rd, and 4th value change, but i did not discover …

Member Avatar for gotschai
0
727
Member Avatar for _1_32

I have spent about 40 hours on this code so far. I have finally cleared the faults from it. I am a new coder. What I am trying to get it to do is to display the users name is the "type your guess " box as in "type your …

Member Avatar for Reverend Jim
0
490
Member Avatar for chantalrdj

Hello, My computer has been slow and having problems for the last week or so. A message popped up the other day that my son said something about my internet provider found a threat or something weird. He closed out of the internet quickly, so I never saw it, but …

Member Avatar for Reverend Jim
0
614
Member Avatar for rstheshotts

hi, I was trying to download whatsapp for my pc and lots of rubbish came down instead. I have got rid of most of it but now every time I start IE searching.com comes up. Click on mu home page icon and ok. Also I've tried to uninstall all that …

Member Avatar for rstheshotts
0
613
Member Avatar for AndreRet

**Modifications Required for VB6 Applications to Work on Vista/7** Thanks to Hassan Basri in VBForums **Application Changes** - Remove SendKeys calls and replace them with API code. - Use the HKEY_CURRENT_USER in the registry for the settings of your application. - Do not write to HKEY_LOCAL_MACHINE. - If you are …

Member Avatar for hefaz
2
5K
Member Avatar for scrapple

Hi, hoping someone might be able to help me with a possible infection. A few months ago, I started to notice some mouse lagging whenever I started chrome. I didn't think anything of it at the time because I usually start chrome with 5 tabs and 5 extensions, and figured …

Member Avatar for scrapple
0
666
Member Avatar for AndrewBone

hello, I have in my procedure this code: 1. Selelect Case Count 2. Case 1 3. Call MySub1() 4. Case 2 5. Call MySub2() 6. Case 3 7. Call MySub3() 8. '... 9. Case N 10. Call MySubN() 11.End Select But using an array: 1. Dim ArrMySubs(N) as string 2. …

Member Avatar for djjeavons
0
98
Member Avatar for ken_6

Hello I trying to get the email address from the database and input it to the asp code or html. I was able to read the email address from the database but not able to store the value. How can I store the value? Response.Write bs("email_addr") its reading from the …

Member Avatar for hericles
0
140
Member Avatar for thebuffy

hello. For i=1 To 40 Response.Write("<td height='30' align='center'>x") Else Response.Write("<td height='30' align='center'><input type=radio name=asd value="i"><br></td>") // PROBLEM HERE End If next the code makes value of radiobuttons "i" as string, it should print i as variable like 1,2,3,4,5,6,7

Member Avatar for thebuffy
0
82
Member Avatar for Papa_Don

Group, I'm trying to write some code that will read the clocktime. When it hits a predetermined time, I want it to run a routine. I know how to do this in VB.net. It would be done like this: Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick If …

Member Avatar for Santanu.Das
0
3K
Member Avatar for Stuugie

Hi All, I'm working on a script which has a primary function to look for jpg files. I can get it to work if the folder path is just my desktop but if I try the start of the path to be C:\ it errors out. Right now the error …

Member Avatar for cgeier
0
414
Member Avatar for shroomiin

Hi. I have here a script which I had acquired from the net. I have tested it in a lab environment and it seems to accomplish my task perfectly. That being- to list each server in the domain, its services and the account the service runs under. Problem is- I …

Member Avatar for chriswelborn
0
167
Member Avatar for jangojan

hie all i am in a phase of creating a hta application for our internal functionality of our company. basically the reqt is to embed a self devloped binary file in the hta file, but i am facing a problem. like where i should paste the base64 strings in the …

0
172
Member Avatar for riahc3

Im thinking of proper ways to validate dates. Which months have 30 or 31, feb when it has 28, etc. Since Im doing this in VBScript and there is no forum for that here, I thought of making this thread for a pseudocode method of doing it correctly universally. No …

0
90
Member Avatar for davidjennings

The following code is producing this error `Microsoft VBScript compilation error 800a03f6 Expected End ` followed by `/stock/availability-quick/availability2.asp, line 130` I think it is a if else error. I have looked over the code and i don't see the error and would benefit from an expert pair of eyes to …

0
163
Member Avatar for Stuugie

Not sure if this is the right spot for this question but I'm here! I'm trying to make a vb script that opens large text files, one at time, searches each line for Null values (there can be many) and then replaces them with a space. My coworker put the …

Member Avatar for Stuugie
0
846
Member Avatar for davidjennings

Hi all, I have to update some classic ASP code and I need to add an if statment to compare if a uppercase value is == "N/A" and to compare value with request("productLink") line 8 and if it is it should by pass validation on line 16. Any further information …

Member Avatar for JorgeM
0
382
Member Avatar for Sanket_3

I need to create a cron job which will execute a php file after every 5 sec on my Win7 machine. I have Tomcat installed on my machine also apace server for php in uwamp server and i have knowledge of c,c++,java,javascript and vbscript. Also i have some experience in …

Member Avatar for rch1231
0
233
Member Avatar for aripaka

Hi, I am a novice in .Net. Can anyone please help me by clarifying the below doubts... :cool: How can we include a client side script like Javascript or VBscript in an ASP.Net page? Can we have multiple <script> blocks in ASP.Net page?

Member Avatar for Ravi_10
0
561

The End.