16,004,854 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 .NET 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 namerg (Top 28 by date)
namerg
16-Oct-14 15:42pm
View
Windows user....i think i figured it out, maybe you can help me with the following on the note variable: $note = $env:username.ToUpper(),$FullName.GivenName,$FullName.Surname,"{0} {1} to {2}" -f (Get-Date),$status.ToUpper(),$env:computername
I added the following:
$note | Select Username,FirsName,LastName,Date,Time,State, ComputerName | Export-Csv "C:\scripts\ActiveDirectory\clocktime.csv" -nti
But the contents of clocktime.csv has the following:
"Username","FirsName","LastName","Date","Time","State","ComputerName"
,,,,,,
namerg
16-Oct-14 13:22pm
View
Deleted
By the way, i get the following error when i run it locally:
PS C:\scripts\ActiveDirectory> $note = "{0} {1} to {2}" -f (Get-Date),$status.ToUpper(),$env:computername
You cannot call a method on a null-valued expression.
At line:1 char:1
+ $note = "{0} {1} to {2}" -f (Get-Date),$status.ToUpper(),$env:computername
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
namerg
2-Apr-13 17:11pm
View
I really do not know very well powershell but i figured it out.
namerg
2-Apr-13 14:57pm
View
14401 is variable and they are time stamped daily
namerg
2-Apr-13 14:50pm
View
Let me rephrase my goal:
The are five files: YYYYMMDD_whatever_clm.txt, YYYYMMDD_whatever_proc.txt,YYYYMMDD_whatever_pym.txt,YYYYMMDD_whatever_pymt_li.txt,YYYYMMDD_whatever_cc.txt
20130327_14401_clm.txt
20130327_14401_proc.txt
20130327_14401_pymt.txt
20130327_14401_pymt_li.txt
20130325_14401_cc.txt
To Do: Need to check the existence of *_clm.txt,*_proc.txt,*_pymt.txt and *_pymt_li.txt from Monday to Friday. But, on Monday need to check the existence of only the *_cc.txt
namerg
2-Apr-13 13:50pm
View
well do not know how to do it...
namerg
26-Mar-13 14:36pm
View
Thanks Sandeep
namerg
26-Mar-13 14:21pm
View
Got it. I did replace that line with olAtt.SaveAsFile MyPath & olAtt.FileName
namerg
26-Mar-13 13:58pm
View
@Zoltán: PERFECT. But when saving the attachment, it saves it as my profile name, not the attachment name, i did send the attachment as Test.xlsx
namerg
27-Feb-13 13:21pm
View
On the output I see the following: The thread 'vshost.NotifyLoad' (0x1c10) has exited with code 0 (0x0).
The thread '<no name="">' (0x34b0) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x28a8) has exited with code 0 (0x0).
'Win_UPI_IE9_GE_Settings.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\roserog\Documents\Visual Studio 2010\Projects\Win_UPI_IE9_GE_Settings\Win_UPI_IE9_GE_Settings\bin\Debug\Win_UPI_IE9_GE_Settings.exe', Symbols loaded.
'Win_UPI_IE9_GE_Settings.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '<Thread Ended>' (0x2154) has exited with code 0 (0x0).
namerg
27-Feb-13 13:07pm
View
S.M Thanks but I should not have buttons, just a small plain form.
I am using Environment. Exit(0); but I am getting a System.NullReferenceException. I have posted already a question.
namerg
27-Feb-13 12:53pm
View
By the way, if I debug. I do not see any errors
namerg
26-Feb-13 19:01pm
View
Got it. I just finished my first C# program. Thank you so much for you help..love you...no gayness intended :) You da man.
namerg
26-Feb-13 18:56pm
View
Damn...it worked on my console app but on the windows version it failed...gotta debug the windows version. But, you are right thank you so much. If i get stuck, i will bother you :)
namerg
26-Feb-13 18:38pm
View
I got it, but not sure how to fix it. At the end I have Subkey17.close() Subkey17a.close() Subkey17b.close() and of course Subkey17a is null so, there is nothing to close. I can do "if subkey17a == null then break else close it, right ?
namerg
26-Feb-13 18:32pm
View
working on it...
namerg
26-Feb-13 17:59pm
View
by the way, I changed it to close and I got the following error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of object. as .Program.Main(String[] args
And the event viewer shows the following:
Application: UPI_IE9_GE_Settings.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at UPI_IE9_GE_Settings.Program.Main(System.String[])
----------------------------
Faulting application name: UPI_IE9_GE_Settings.exe, version: 1.0.0.0, time stamp: 0x512d396d
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x006925b4
Faulting process id: 0x128
Faulting application start time: 0x01ce1472486044f1
Faulting application path: C:\script\UPI_IE9_GE_Settings.exe
Faulting module path: unknown
Report Id: 86485231-8065-11e2-88d9-1803733d940c
namerg
26-Feb-13 17:38pm
View
Thanks Sergey. Well, in vbscript you do not. So, what's the difference between subkey1.Dispose(); and subkey.Close(). I did use Dispose but the app crashed. Thanks for your help.
namerg
26-Feb-13 10:36am
View
I did what you suggested but I see a message that the program has stopped working, thanks for your help.
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: upi_ie9_ge_settings.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 512cd4fb
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 50484bd7
Problem Signature 07: 3fda
Problem Signature 08: 23b
Problem Signature 09: System.IO.IOException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
namerg
25-Feb-13 17:05pm
View
Thank you Sergey, one last question on your statement what do you mean with "output method via System.Console" can you give me a simple example ?" I am new with C#
namerg
25-Feb-13 14:22pm
View
And that is Line 140
namerg
25-Feb-13 14:22pm
View
I see that I have an error that says
"The name "names3a" does not exist in the current context.
I think is because subkey3a reg path does not exist on
string[] names3a = subkey3a.GetValueNames()
Am i right?
Thanks for your help.
namerg
22-Feb-13 18:34pm
View
Thank you guys. You solved my issue and questions.
I got the desired result through this:
Console.WriteLine("Current CHECK FOR NEWER VERSIONS OF STORED PAGES value: {0} {1} Eveytime I start IE", myValue, myValue);
namerg
22-Feb-13 18:24pm
View
Manfred,
You got it. Can you explain me why the {0} ?
I am new with C#, I do understand {0} as an array.
Thanks for your help.
namerg
13-Feb-13 17:36pm
View
@aspnet_regiis -i
I am stuck in the following:
//**************************BEGIN GENERAL TAB***********************************
//BROWSING HISTORY/CHECK FOR NEWER VERSIONS OF STORED PAGES
//Select the RegistryHive you wish to read from
RegistryKey key = RegistryKey.OpenRemoteBaseKey(RegistryHive.CurrentUser, "");
//Select the path within the hive
RegistryKey subkey1 = key.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings");
Question: How do I navigate inside that registry path look for the existence of a name.?
Thanks for your help
namerg
7-Feb-13 21:51pm
View
Let's say the app does the registry changes and open IE.
If I open another process or instance of IE, will IE open with its default registry entries ?
namerg
7-Feb-13 15:02pm
View
:) Need more advise and guidance
namerg
7-Feb-13 14:27pm
View
Hmm, so why the " Not equal to != " does not work ?
Show More