15,911,531 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14156312 (Top 26 by date)
Member 14156312
10-Mar-21 5:37am
View
Thank you Buddy
Member 14156312
9-Mar-21 21:33pm
View
I updated the question
Member 14156312
9-Mar-21 21:29pm
View
I updated the question how I got the string
Member 14156312
29-Nov-19 3:08am
View
This part Get-ChildItem -Path C:\ -Force -Recurse is does not affect anything.
Member 14156312
29-Nov-19 1:37am
View
Ya, I mean I use my code, but I updated with your advice.
Member 14156312
28-Nov-19 22:20pm
View
Hi @MacieJ Los, I tried your code, but the checkBox show only the folder, not the file inside the folder.
and also return this error Method invocation failed because [System.Windows.Forms.CheckBox] does not contain a method named 'op_Addition'.
Member 14156312
14-Nov-19 2:49am
View
I tried AutoScaleMode.
$form1.AutoScaleMode = "Font"
$form1.AutoScale = $true
BUT it does NOT work. The GUI still mesh up once I execute from different screen resolution
Member 14156312
5-Nov-19 21:07pm
View
I use Diskpart, then Select disk, and Detail Disk. I do this in CMD
Member 14156312
5-Nov-19 8:42am
View
I tried this, but It does not include Location Path
Member 14156312
26-Sep-19 22:54pm
View
Oh I see. That's make sense. Thanks
Member 14156312
26-Sep-19 5:15am
View
Ya, I know it works to Listing All Files Found In the path.
But I have to do this "DISM.exe /capture-ffu /imagefile=e:\WinOEM.ffu /capturedrive=\\.\PhysicalDrive0 /name:disk0 /description:"Windows 10 FFU" as my parameter progress bar
Member 14156312
26-Sep-19 4:24am
View
I updated the script, I put the command for capturing the image to variable result.
I am looking forward for your advice. Thank you so much
Member 14156312
26-Sep-19 4:24am
View
Deleted
I am looking forward for your advice. Thank you so much
Member 14156312
26-Sep-19 4:21am
View
Deleted
I updated the script, I put the command for capturing the image to variable result.
Member 14156312
25-Sep-19 23:05pm
View
I refer to that example. But I still don't have any idea to fix my problem
Member 14156312
10-Mar-19 23:19pm
View
Deleted
I tried ($match.Groups.Count >0 ) but, It always returns "Not Found", Match Found is not working
Member 14156312
6-Mar-19 4:02am
View
No, It doesnt contain spaca for the second file.
Member 14156312
24-Feb-19 21:05pm
View
But, I can't figure out how to check whether the data exist or not
Member 14156312
24-Feb-19 20:42pm
View
"6J" . three of the echo found messages works.
Member 14156312
22-Feb-19 4:22am
View
Ya, the string ("2w", "fr", "6") contain of the TST.txt file.
Member 14156312
22-Feb-19 2:51am
View
you mean this code?
It does not work too.
Dim objFile, tmpStr, objFSO
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile= objFSO.OpenTextFile("C:\Users\TST.txt", ForReading)
tmpStr = objFile.ReadAll
Dim b1, b2, b3
b1 = False : b2 = False : b3 = False
If Instr(1, tmpStr, "2w", vbTextCompare) > 0 Then
b1 = True
End If
If Instr(1, tmpStr, "fr", vbTextCompare) > 0 Then
b2 = True
End If
If Instr(1, tmpStr, "6J", vbTextCompare) > 0 Then
b3 = True
End If
If b1 And b2 And b3 Then
WScript.Echo "Found"
End If
Member 14156312
22-Feb-19 1:56am
View
What do you mean? I dont change anything in thats code, I just remove vbTextcompare
Member 14156312
21-Feb-19 21:15pm
View
But It still not work, It cannot check the string found or not in the text file.
Dim b1, b2, b3
Dim objFile, tmpStr, objFSO
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile= objFSO.OpenTextFile("C:\Users\TST.txt", ForReading)
tmpStr = objFile.ReadAll
WScript.Echo tmpStr
b1 = False : b2 = False : b3 = False
If Instr(1, tmpStr, "2w") > 0 Then
b1 = True
End If
If Instr(1, tmpStr, "fr") > 0 Then
b2 = True
End If
If Instr(1, tmpStr, "6J") > 0 Then
b3 = True
End If
If b1 And b2 And b3 Then
WScript.Echo "Found"
End If
Member 14156312
21-Feb-19 3:14am
View
But It not work. with this code below
Member 14156312
21-Feb-19 2:24am
View
But It look not work
Dim b1, b2, b3
Dim objFile, tmpStr, objFSO
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile= objFSO.OpenTextFile("C:\Users\TT.txt", ForReading)
tmpStr = objFile.ReadAll
WScript.Echo tmpStr
b1 = False : b2 = False : b3 = False
If Instr(1, tmpStr, "2w") > 0 Then
b1 = True
End If
If Instr(1, tmpStr, "fr") > 0 Then
b2 = True
End If
If Instr(1, tmpStr, "6J") > 0 Then
b1 = True
End If
If b1 And b2 And b3 Then
WScript.Echo "Found"
End If
Member 14156312
21-Feb-19 2:04am
View
Thanks, great solution. But I still get error name redifined vbTextCompare
Show More