Click here to Skip to main content
15,909,651 members
Home / Discussions / C#
   

C#

 
AnswerRe: Opening one file by two processes at same time in C# Pin
Not Active25-Oct-09 23:16
mentorNot Active25-Oct-09 23:16 
AnswerRe: Opening one file by two processes at same time in C# Pin
Abhishek Sur25-Oct-09 23:29
professionalAbhishek Sur25-Oct-09 23:29 
QuestionHow to reference a DLL from a custom folder Pin
hirajhil25-Oct-09 22:22
hirajhil25-Oct-09 22:22 
AnswerRe: How to reference a DLL from a custom folder Pin
Christian Graus25-Oct-09 22:33
protectorChristian Graus25-Oct-09 22:33 
GeneralRe: How to reference a DLL from a custom folder Pin
hirajhil25-Oct-09 22:36
hirajhil25-Oct-09 22:36 
GeneralRe: How to reference a DLL from a custom folder Pin
Abhishek Sur25-Oct-09 22:52
professionalAbhishek Sur25-Oct-09 22:52 
GeneralRe: How to reference a DLL from a custom folder Pin
Giorgi Dalakishvili25-Oct-09 22:55
mentorGiorgi Dalakishvili25-Oct-09 22:55 
QuestionPowerShell Cmdlets Pin
satsumatable25-Oct-09 21:02
satsumatable25-Oct-09 21:02 
Hi
I'm trying to create PowerShell Cmdlets from C#, I'm able to create the Cmdlets and register it and it works fine as well. It looks like i need to create a separate class for every Cmdlet, Is it correct? Let's say following code is to create one Cmdlet and if i want to create another Cmdlet called Get-Process do i need to create new class and write?


[Cmdlet(VerbsCommon.Get, "Proc23")]
    public class TouchFileCommand : Cmdlet
    {
        private string path = null;
        [Parameter(Mandatory = true)]
        public string Path
        {
            get
            {
                return path;
            }
            set
            {
                path = value;
            }
        }
        protected override void ProcessRecord()
        {
            if (File.Exists(path))
            {
                //File.SetLastWriteTime(path, DateTime.Now);
               
            }
        }
    }

QuestionThanks for all Pin
Abdaqader25-Oct-09 20:37
Abdaqader25-Oct-09 20:37 
AnswerRe: Thanks for all Pin
Christian Graus25-Oct-09 21:17
protectorChristian Graus25-Oct-09 21:17 
AnswerRe: Thanks for all Pin
Pete O'Hanlon25-Oct-09 22:04
mvePete O'Hanlon25-Oct-09 22:04 
JokeRe: Thanks for all Pin
musefan25-Oct-09 23:00
musefan25-Oct-09 23:00 
AnswerRe: Thanks for all Pin
Nagy Vilmos25-Oct-09 23:04
professionalNagy Vilmos25-Oct-09 23:04 
GeneralRe: Thanks for all Pin
Richard MacCutchan26-Oct-09 4:29
mveRichard MacCutchan26-Oct-09 4:29 
GeneralRe: Thanks for all Pin
Nagy Vilmos26-Oct-09 6:07
professionalNagy Vilmos26-Oct-09 6:07 
QuestionOutlook Redemption Pin
nirmalsat25-Oct-09 20:00
nirmalsat25-Oct-09 20:00 
AnswerRe: Outlook Redemption Pin
Richard MacCutchan26-Oct-09 4:32
mveRichard MacCutchan26-Oct-09 4:32 
QuestionAdd BMP header into raw file Pin
Game-point25-Oct-09 18:47
Game-point25-Oct-09 18:47 
AnswerRe: Add BMP header into raw file Pin
Christian Graus25-Oct-09 18:53
protectorChristian Graus25-Oct-09 18:53 
GeneralRe: Add BMP header into raw file Pin
Game-point25-Oct-09 19:02
Game-point25-Oct-09 19:02 
GeneralRe: Add BMP header into raw file Pin
Christian Graus25-Oct-09 19:06
protectorChristian Graus25-Oct-09 19:06 
GeneralRe: Add BMP header into raw file Pin
Game-point25-Oct-09 19:18
Game-point25-Oct-09 19:18 
GeneralRe: Add BMP header into raw file Pin
Christian Graus25-Oct-09 19:22
protectorChristian Graus25-Oct-09 19:22 
QuestionHow to get value from the listbox in Form2 to display in Form1 Textbox? Pin
Zar Ni25-Oct-09 16:58
Zar Ni25-Oct-09 16:58 
AnswerRe: How to get value from the listbox in Form2 to display in Form1 Textbox? Pin
N a v a n e e t h25-Oct-09 17:17
N a v a n e e t h25-Oct-09 17:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.