2 questions:
1. When running a report in WebI XI rel 2 that brings back no records I get the following error message: "There is no data corresponding to this query. Query 1" Is there any way to suppress this popup so that I can put in a default message in the report itself?
2. Also, I...
I have 4 different layout parts on the master page that I pass on to the content pages.
They are Top menu, left menu, right menu and body(in the middle). Content placeholder are all placed inside table cells. And all parts are separate cells.
On the master page the top of the right menu, left...
Yesterday, my computer froze. So I pressed restart button. After reboot computer couldn't boot windows. It would just show me the starting picture of windows on the black background with the moving blue progress bar. Nothing would happen after that. Bios works fine and it shows my hard drive and...
Hi!
How can you go back a line, when you are reading a textfile. I know there is a function to skip the line, but I haven't found a way to go back the line.
I need that because when script looks for certain expression in the text file and finds that expression, I need to record that line. But...
Hey!
I'm trying to write it without the regular exp. But I have a couple problems:
Set objFolder = objFSO.GetFolder(strDirName)
Set colFiles = objFolder.Files 'returns files in the folder
For Each File in colFiles
Set objFile2 = objFSO.OpenTextFile(File.Path...
Thanks dm4ever!
I tried your script. And due to my lack of knowledge in vbscript and especially regular expressions I can't make your script to work.
It keeps giving me error on 19th line.
" RegExpMatch = RegEx.Execute(strTxt)(0).SubMatches(0) "
What can be a possible error?
Thank you!
Sure!
How the file looks like:
*****************************
radomtext
radomtext
radomtext
radomtext
! text
version 11
fefhe#sh run <- first mentioning of the run
random text
t random text end <- end doesn’t count here
random text
end <- end alone on the line, counts. Script can...
Thanks PHV! Excellent code dm4ever!
I can't figure out how to use it for multiple words. I'm actually looking for certain expressions after specific commands.
The .txt files are switch outputs. I need to check if the commands worked in all of them. So I need a script that looks for commands...
I've wrote the script that writes on the files. But the whole concept of going through the files in one folder is quite confusing for me and searching the web didin't bring any specific answers.
I've tried to modify the script that displays the name of the files in the folder to actually open...
Good day!
I'd really appreciate help from someone who is more experienced than I am.
Problem:
- I have around 500 .txt files in one folder. I need to write the script to open each file. Then go through the text and look for specific words. For example if it has "test" or "password" in it. If...
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.