command

Errorlevels set by DOS commands on Windows

I have a batch program that calls several child batch programs and they make entensive use of various DOS commands. In case of error, i would like to provide logging information about the error details to the user. This page details the various MS-DOS commands that can set an errorlevel http://support.microsoft.com/kb/81819 How do i kn...

Databinding to functions in dynamically-loaded plugins

I have several MenuItems whose Commands are bound to my ViewModel. Until today, all of them execute properly. Now I have added a MenuItem whose ItemsSource is bound to an ObservableCollection. The point of this MenuItem is to enumerate a list of plugins so that the name of all plugins show up. Then when the user clicks on a plugin na...

UltiDev Cassini command line

Hi, When I register application with UltiDev Cassini command line, how can I set the application name?? Thanks, ...

ListBox MouseBinding to Command not working

Hi ! I want to bind the MouseDoubleClick (or PreviewMouseDoubleClick) to my custom Command defined in my custom WPF Control. The problem is that it does not work. ... <Popup> ... <!--This CommandBinding **DOES NOT WORK** !--> <ListBox Grid.Row="1" x:Name="PART_lBox" ...

Script: SSH command execute and leave shell open, pipe output to file

I would like to execute a ssh command and pipe the output to a file. In general I would do: ssh user@ip "command" >> /myfile the problem is that ssh close the connection once the command is executed, however - my command sends the output to the ssh channel via another programm in the background, therefore I am not receiving the output...

command to cut and copy the sub directories and files to specified directory in windows

Hi all, My question is I have 3 directories and 5 files in C:\test I want cut and paste all the files and directories under C:\test to C:\demo through command line in windows. Plz help me in this Thx in advance ...

How do you set the user from the command line in capistrano?

The following doesn't run as user bar, as I would expect. cap invoke COMMAND="cat foo" SUDO=1 -S user=bar I also tried cap invoke COMMAND="cat foo" SUDO=1 -s user=bar Is there some way to force capistrano to use a specific user from the cammand line? ...

what is /bin/true

All, In linux what is /bin/true Thanks..... ...

Entity framework: Access / modify the Command Tree or otherwise provide custom mapping C# functions

Hello, I'm investigating a method of providing transparent bi-temporal versioning of entities with Entity framework 3.5 or 4.0. What I want to do: When an entity is saved, the former entity has to be copied into a separate table, for example, if the entity is Customer, it will be saved in Customer_AUD. Upon retrieval, based on date/ver...

How can I remove SVN directories after a confirmation prompt?

Hello, I want to be able to remove the .SVN folders from a directory. I found the following registry hack that will allow you to do just that... http://weblogs.asp.net/jgalloway/archive/2007/02/24/shell-command-remove-svn-folders.aspx However, the one thing I don't like about this solution is that it gives NO CONFIRMATION at all. I ...

One-liner for Setting Global Default Options for Unix/Linux Commands - Best Practices

I consistently run the ruby sudo gem install mygem command with these two options on my production system: sudo gem install mygem --no-ri --no-rdoc I do that to save a little on space and on how long it takes to setup the documentation. Is there a way (other than hardcoding them into the bin/gem file) to say 'always run this command w...

find command the list suid and gid files under root/ help

Hi, im looking for a find command to find all files under the / files that are suid and gid. i got, find / ???. How can i use the find command to look for files under the / that have suid and gid. Thanks ...

Linux: How would I pipe text into a program properly?

I've looked but can't find anything. A program for example, a TTS I use lets you do the following: ~#festival -tts | echo "I am to be spoken" Which is really nice, but for programs I use such as hexdump, I don't know how to pipe text into it. I can REALLY use some of these things, some examples I tried (but failed) are like so: ~#gte...

WPF command support in ComboBox

I want to have a command on my viewmodel execute on the selectionchanged of my ComboBox. Obviously Combobox does not support executing commands. I have created a new class that inherits from Combox and implements this interface. When I try to view the control (in the designer or in debug) the control doesn't show. I don't get any excep...

Invoking a WPF command from a WPF-embedded Winforms control

I have a WinDataGrid class that extends from an Infragistics UltraGrid. I have embedded my WinDataGrid within a WPF usercontrol using WindowsFormHost. When rows are selected, I need to invoke a predefined DelegateCommand<IList> with my collection of selected rows. How would I go about this? As background, I have a WPF app that uses bo...

What funny automatic-response do you know ?

(I don't know how this kind of fun questions are dealt with in here, but I hope it doesn't get deleted (since it's not a dupe, it IS a question, it is (fairly) programming related) just because it's not professional or really important) I've come across this image and I went to windows prompt and noticed that it didn't work anymore:( i...

wpf prism composite command

I have a composite WPF application. I am planning to implement tool bar functionality . There are few toolbar items ( basically print,save , hide , expand , undo) which will be common to all views in the main region. For this i have created default toolbar module which will add these items ( print,save , hide , expand , undo) to the to...

Is it a best practices to wrap a h:form tag in the jsf template page

<p><h:commandLink value="Apply Now" action="register" /></p> when i writing code above, exception below throws: [2/12/10 11:24:29:535 CST] 0000005f renderkit W Component j_id26 must be enclosed inside a form. Is it a best practices to wrap a h:form tag in the jsf template page, and then every page using the template can jus...

Loop in code block on click argument.

Basically what i am trying to do is display a list of categories. And if the admin is logged in i want to show some buttons next to each category. For example a button to delete it. The problem is that i dont know how to pass a parameter to the function that does the action. Like i specify that on button click the function 'DeleteCat' ...

WPF: TreeViewItem bound to an ICommand

Hi All, I am busy creating my first MVVM application in WPF. Basically the problem I am having is that I have a TreeView (System.Windows.Controls.TreeView) which I have placed on my WPF Window, I have decide that I will bind to a ReadOnlyCollection of CommandViewModel items, and these items consist of a DisplayString, Tag and a Relay...