There are many samples of such a scripts, but I wonder is it a good solution and fast solution to do it in WshShell.Run method.
I read that is not, but meaby somebody uses it on a daily and know something more....
This seems to be quite complicated.
Hi
This is Richard Mueller script MVP ADSI ( it replace 1 string to another 1 in multiple files in directory )
Option Explicit
Dim objFSO, strFolder, objFolder, objFile
Dim strOldValue, strNewValue, objRead, strContents, objWrite
Const ForReading = 1
Const ForWriting = 2
strFolder =...
Hi
I have a question is it a good option to compress folders to separate archives using 7-zip in vbs?
It's easy to do it in bat:
FOR /D %%F IN ("*") DO (
"C:\Program Files (x86)\7-Zip\7z.exe" a -t7z -mx9 -r -y "%%F.7z" "%%F"
)
I was searching for something in vbs, but codes are very long and...
It returns error on line 2 - stringtofind is not declared so I changed line 1 to Dim fso, count, src, folder, file, [highlight #FCE94F]stringtofind[/highlight]
but now it returns error on line 9 If instr(file.name, stringtofind, 0) > 0 Then Type Mismatch
Hi forum members!
This code below count the number of txt files.
What should be changed to count files containing specific string in a filename?
Option Explicit
Dim fso, count, src, folder, file
Set fso = CreateObject("Scripting.FileSystemObject")
src = "C:\Users\Mark\Desktop\test"
Set...
Hi
thx for replay
So far I have tried:
strFolder = Month(date) & "_" & Year(date)
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CreateFolder(strFolder)
I'm not a programmer so my code is very simple
Hello
I need your help with the script.
I want to create monthly folders for example: Jan14, Feb14, March14 and so.... for one year
Is it possible to do?
Thx in advice
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.