Search found 103 matches

by hackoo
Tue Apr 26, 2016 5:46 am
Forum: VBScript
Topic: Validate a credit card number
Replies: 1
Views: 20011

Validate a credit card number

I have this script to validate a credit card number with this condition: The number must be within this range [222100-272099] I started a little bit but I still dry in the regexp :roll: Thank you for your help ! Title = "Valid card number or not" CardNumber = InputBox("Please type you...
by hackoo
Thu Apr 21, 2016 5:18 pm
Forum: Other Scripting Languages
Topic: How to show properly a balloontip ?
Replies: 6
Views: 56821

Re: How to show properly a balloontip ?

I think i need to pause for a while and use the method .Dispose like that : ::************************************************************************** :PS_Sub $notifyicon $time $title $text $icon PowerShell ^ [reflection.assembly]::loadwithpartialname('System.Windows.Forms') ^| Out-Null; ^ [reflec...
by hackoo
Thu Apr 21, 2016 4:22 pm
Forum: Other Scripting Languages
Topic: How to show properly a balloontip ?
Replies: 6
Views: 56821

Re: How to show properly a balloontip ?

jvierra wrote:When PowerShell exits the icon will be removed.
I saw this http://stackoverflow.com/questions/2179 ... powershell
so how to add this method .Dispose() in my code ?
by hackoo
Thu Apr 21, 2016 4:01 pm
Forum: Other Scripting Languages
Topic: How to show properly a balloontip ?
Replies: 6
Views: 56821

How to show properly a balloontip ?

I'm writing a cleaner for some known virus key like ( "vbs" ,"vbe" ,"wsf", "a3x", "VBScript.Encode" ) from the registry. I want to add a BalloonTip in powershell with this script but, there is something wrong ! I don't know how to remove the icon fro...
by hackoo
Tue Jul 28, 2015 2:03 am
Forum: VBScript
Topic: How to close just one opened folder ?
Replies: 1
Views: 16064

How to close just one opened folder ?

I have this vbscript to close all opened folders Option Explicit Dim shell,oWindows,j Set shell = CreateObject("Shell.Application") set oWindows = shell.windows for j = 0 to oWindows.count - 1 oWindows.item(j).quit next set shell = nothing set oWindows = nothing Now, i wonder is there a so...
by hackoo
Wed Jul 15, 2015 8:02 pm
Forum: Other Scripting Languages
Topic: Encrypt a string and read the decrypted one from file
Replies: 0
Views: 51450

Encrypt a string and read the decrypted one from file

I found an useful code on the net to encrypt and decrypt strings. So i wanted to change it a little , in order to let the encryption and decryption in the same batch and not into two separate files here is the link Batch Encryption And here is my modified code: @echo off setlocal ENABLEEXTENSIONS EN...
by hackoo
Mon Jun 29, 2015 2:56 pm
Forum: PowerShell
Topic: How to extract only links finished by extensions .swf ?
Replies: 6
Views: 13631

Re: How to extract only links finished by extensions .swf ?

When i do like this i got nothing because,i think what i want to catch is http://www.addictinggames.com/newGames/car-games/moto-x3m/moto-x3m.swf and is located under a javascript not a link ? so is there a workaround to do that correctly ? <script type="text/javascript"> document.addEventL...
by hackoo
Mon Jun 29, 2015 1:30 pm
Forum: PowerShell
Topic: How to extract only links finished by extensions .swf ?
Replies: 6
Views: 13631

Re: How to extract only links finished by extensions .swf ?

Thank you for your reply but i don't know why i got this error Le terme « Invoke-WebRequest » n'est pas reconnu comme nom d'applet de commande, fonctio n, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un ch emin d'accès existe, vérifiez que le chemin d'accès est cor...
by hackoo
Mon Jun 29, 2015 6:38 am
Forum: PowerShell
Topic: How to extract only links finished by extensions .swf ?
Replies: 6
Views: 13631

How to extract only links finished by extensions .swf ?

Hi ;) I wonder how to extract only links finished by extensions .swf from the source code of a web page and save them on text file in order to download them after ? So i just have this code : $ie = new-object -ComObject InternetExplorer.Application $ie.Navigate2('http://www.addictinggames.com/car-ga...
by hackoo
Thu Jan 01, 2015 3:59 am
Forum: VBScript
Topic: A Vbscript to checks the launch of a .bat and .exe programs
Replies: 3
Views: 6912

Re: A Vbscript to checks the launch of a .bat and .exe progr

Ok, the problem is solved like this : Option Explicit If AppPrevInstance() Then MsgBox "Il y a une instance déjà en cours",VbExclamation,"Il y a une instance déjà en cours" WScript.Quit Else Do Call Main(Array("c:\toto1.bat","c:\toto2.bat","c:\toto3.bat&q...