Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why doesn´t work the Code? Pin
nhqlbaislwfiikqraqnm19-Aug-09 23:05
nhqlbaislwfiikqraqnm19-Aug-09 23:05 
GeneralRe: Why doesn´t work the Code? Pin
padmanabhan N19-Aug-09 23:15
padmanabhan N19-Aug-09 23:15 
AnswerRe: Why doesn´t work the Code? Pin
musefan19-Aug-09 23:09
musefan19-Aug-09 23:09 
AnswerRe: Why doesn´t work the Code? Pin
Keith Barrow19-Aug-09 23:10
professionalKeith Barrow19-Aug-09 23:10 
GeneralRe: Why doesn´t work the Code? Pin
nhqlbaislwfiikqraqnm20-Aug-09 0:02
nhqlbaislwfiikqraqnm20-Aug-09 0:02 
GeneralRe: Why doesn´t work the Code? Pin
Luc Pattyn20-Aug-09 0:37
sitebuilderLuc Pattyn20-Aug-09 0:37 
GeneralRe: Why doesn´t work the Code? Pin
Keith Barrow20-Aug-09 0:39
professionalKeith Barrow20-Aug-09 0:39 
GeneralRe: Why doesn´t work the Code? Pin
Pete O'Hanlon20-Aug-09 1:02
mvePete O'Hanlon20-Aug-09 1:02 
The two pieces of code aren't actually the same. You haven't just moved the string[] array, you've also moved the second }. Try this to see if it has any effect:
string[] get_Split = get.Split('~');
int time = Convert.ToInt32(get_Split[1]);
if (get.Contains("rshutdown"))
{
System.Diagnostics.Process.Start("shutdown", "-s -t " + time.ToString());
}
if (get == "rWord")
System.Diagnostics.Process.Start("winword");
if (get == "rExcel")
System.Diagnostics.Process.Start("excel");
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: Why doesn´t work the Code? [modified] Pin
nhqlbaislwfiikqraqnm20-Aug-09 9:04
nhqlbaislwfiikqraqnm20-Aug-09 9:04 
Questionwrite at a particular position in a text document Pin
firefeet19-Aug-09 22:36
firefeet19-Aug-09 22:36 
AnswerRe: write at a particular position in a text document Pin
musefan19-Aug-09 23:13
musefan19-Aug-09 23:13 
AnswerRe: write at a particular position in a text document Pin
Keith Barrow19-Aug-09 23:24
professionalKeith Barrow19-Aug-09 23:24 
GeneralRe: write at a particular position in a text document Pin
firefeet20-Aug-09 0:00
firefeet20-Aug-09 0:00 
GeneralRe: write at a particular position in a text document Pin
Keith Barrow20-Aug-09 0:22
professionalKeith Barrow20-Aug-09 0:22 
GeneralRe: write at a particular position in a text document Pin
firefeet20-Aug-09 0:30
firefeet20-Aug-09 0:30 
GeneralRe: write at a particular position in a text document Pin
Luc Pattyn20-Aug-09 0:41
sitebuilderLuc Pattyn20-Aug-09 0:41 
GeneralRe: write at a particular position in a text document Pin
firefeet20-Aug-09 0:51
firefeet20-Aug-09 0:51 
AnswerRe: write at a particular position in a text document Pin
Keith Barrow20-Aug-09 0:57
professionalKeith Barrow20-Aug-09 0:57 
GeneralRe: write at a particular position in a text document [modified] Pin
firefeet20-Aug-09 1:03
firefeet20-Aug-09 1:03 
AnswerRe: write at a particular position in a text document [modified] Pin
Tr@v20-Aug-09 10:20
Tr@v20-Aug-09 10:20 
GeneralRe: write at a particular position in a text document Pin
firefeet20-Aug-09 17:53
firefeet20-Aug-09 17:53 
AnswerRe: write at a particular position in a text document Pin
Tr@v21-Aug-09 7:44
Tr@v21-Aug-09 7:44 
QuestionUpdate datagrid cell Pin
bonzaiholding19-Aug-09 22:35
bonzaiholding19-Aug-09 22:35 
AnswerRe: Update datagrid cell Pin
padmanabhan N19-Aug-09 22:54
padmanabhan N19-Aug-09 22:54 
GeneralUsing Dynamic predicates (Linq) Pin
Sayed Sajid19-Aug-09 22:32
Sayed Sajid19-Aug-09 22:32 

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.