...Set objWrite = objFSO.OpenTextFile(objFile.Path, ForWriting)
objWrite.Write strContents
objWrite.Close
End If
End If
Next
'**************************************************************************
Function IsTXTFile(sFile)
IsTXTFile = (InStr(1, Right(UCase(sFile), InStrRev(sFile...
..."set Result=" ^& p
cscript //nologo %vbs% > %cmd%
for /f "delims=" %%a in (%cmd%) do %%a
for %%f in (%vbs% %cmd%) do if exist %%f del %%f
for %%g in ("vbs cmd") do if defined %%g set %%g=
::******************************************************************************
...= "MyXCopyLog.txt"
MyExcludeFile = "echo .mp3 > MyExcludeFile.txt" 'This file must be created and contains .mp3 to exclude in the first line
'**************************************************************************************************************************
'Remark : You can also add...
...& "\Coast Bike.swf"
' ---------------------------------Les paramètres à modifier pour télécharger le jeu---------------------------------
'*********************************************************************************************************************
Call...
...from the net that worked great for me [2thumbsup]
Const navflags = 2048
Set IE = CreateObject("InternetExplorer.Application")
Call One
Call Two
'**********************************************
Sub One()
IE.Visible = True
IE.Navigate2 "http://en.wikipedia.org/wiki/"
Do
WScript.Sleep 100...
...NewTab = &h800
Dim objExplorer
Set objExplorer = CreateObject("InternetExplorer.Application")
If CheckConnectionInternet() = True Then Call Main()
'*****************************************************************
Sub Main()
NavigateIE_Tabs "http://tek-tips.com/viewthread.cfm?qid=1721921",""...
...solved like this :
Just takes one simple loop and a filter !
Set wmi = GetObject("winmgmts:root\cimv2")
Set cProcesses = wmi.ExecQuery("select * from win32_process where Name like '%wscript.exe%' AND NOT commandline like '%" & wsh.scriptname & "%'")
For Each oProcess in cProcesses...
...sProcName = Mid(wsh.fullname, InstrRev(wsh.fullname, "\") + 1)
Set cProcesses = oWMISrvc.ExecQuery( _
"select * from win32_process where Name = '" & sProcName & "'")
For Each oProcess in cProcesses
If Instr(lcase(oProcess.Commandline), lcase(wsh.scriptname)) < 0 Then
wsh.echo...
...==> then it works 5/5
So I'm looking how to get around this error ?
Option Explicit
Dim adress,result,Title
'*****************************************************************
'Fonction pour ajouter des guillemets dans une variable
Function DblQuote(Str)
DblQuote = Chr(34) & Str &...
Hi [peace] and thank you Strongm for your reply !
So, Your solution works, but when i choose a string like MyString = "www.google.com" so it return me "." instead of "l"
So i found this trick to get it working like this :
Private Function GetFirstSingleLetter(ByVal strText As String) As String...
Hi [peace]
I want to create a function for capturing the first letter in a not-repeating string
For example if have this :
MyString = "aabbccddMffrryx"
So the first letter will be returned as M
So i'm looking for the best and the easy way to do it in vbscript.
So i ask you how can i do this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.