command-prompt

Adding Native Tools Command Prompt on VS2015 RC

徘徊边缘 提交于 2019-12-22 11:27:16
问题 Since I cannot locate Native Tools CMD under the Tools menu, I try to manually add it in External Tools . Few questions: Regardless of what I choose for Command (ARM, x86 or x64 etc.), Command is always C:\Windows\System32\cmd.exe . Why the different CMDs end up having the same path to the native System32's CMD? Referring to this answer, I should insert /k "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" to the arguments - what is the /k and what is the bat for

Jump to method definition regardless of class it is defined in

戏子无情 提交于 2019-12-22 10:53:00
问题 In the MatlabⓇ IDE, is there any easy way to jump to the definition of a particular method, without knowing in what class it is defined? For self-contained functions, I can type edit funcname.m . The same for classes. However, the hierarchy of superclasses for a particular class may be large. By using metaclasses, I can find out in what class a method was defined, then open the class, and browse to the appropiate definition. This is a lot more work than it is for self-contained functions.

iPython- Is there a way to answer “y” to (or ignore) all y/n prompts?

夙愿已清 提交于 2019-12-22 10:36:28
问题 So I have an ipython notebook that has a lot of large variables, and at one point I want to get rid of all the ones I'm done with. I'm using %reset_selective variablename to clear each one, but there's 60 of these variables and when I run the block that has all 60 prompts, it asks me to enter y/n for every clear. "Once deleted, variables cannot be recovered. Proceed (y/[n])?" Is there a way I can answer "y" for all of them at once, or to skip the prompt altogether? 回答1: Reading from here:

Is it possible to write a Tee in Windows batch or in Java?

情到浓时终转凉″ 提交于 2019-12-22 09:24:19
问题 I have a Java program that I run in Windows 7 console: java -classpath classfolder mypackage.MyProgram This program runs for very long. Time-by-time it writes output to the console using System.out.println. Is it possible to direct its output both to the console and into a log file in real-time without modifying the existing Java code? If Windows 7 is unable to do that, is it possible to write a Tee utility in Java? Is it solved in Windows 8? 回答1: To do it "without modifying the existing Java

Using the Command Window in Visual Studio

你离开我真会死。 提交于 2019-12-22 07:04:04
问题 I'm trying to follow this walk-through: Hosting a WCF in a Windows Service Up to this step: Step 6: Install the Windows Service In this step, you install the Windows service and run it from the Services console. Rebuild the solution and open a Visual Studio command prompt. Browse to the bin directory of the project where WindowsService1.exe is located. Run the following command to install the service: Installutil WindowsService1.exe I've never used VS Command Prompt before. How do I do number

Running a powershell command using full path and arguments from command line

别说谁变了你拦得住时间么 提交于 2019-12-21 23:32:19
问题 I have a script that sits in Program Files folder and accepts arguments: verbose and restart Running it from its folder works perfectly: powershell ./<file.ps1> -verbose:$True -restart Trying to run it using full path is where I have issues: powershell & "C:\Program Files\Folder\<file.ps1> -verbose:$True -restart" Above command doesn't run the script; Instead it's opening the PS command prompt and when exiting it, it opens the script in notepad. I also tried to put each variable in a separate

Issues running python scripts in Command Prompt (Specifically with command line arguments)?

和自甴很熟 提交于 2019-12-21 19:39:07
问题 I am trying to run my python scripts in the command-prompt without calling python.exe first. I am specifically doing this in relation to running django-admin.py. I have C:\Python26 and C:\Python26\Scripts in my PATH. However, if I try running django-admin.py by doing: django-admin.py startproject helloworld I get the message: Type 'django-admin.py help' for usage. Now, after some experimentation, I realized the problem is that the secondary arguments to these scripts are not being passed for

set /p with spaces in variable value

倾然丶 夕夏残阳落幕 提交于 2019-12-21 06:35:20
问题 I wanted to make a basic text editor in batch and I'm using set /p to get user input and write that to a file. When I type in something like "hello" or "hello " it works fine, but as soon as I write something with a space and another character after than, like "hello world", the window closes. My code was: set /p append=Write what you want to append: Then I tried: set /p "append=Write what you want to append: " which i found online, but it didn't work. pause isn't of any help because the

set /p with spaces in variable value

耗尽温柔 提交于 2019-12-21 06:34:16
问题 I wanted to make a basic text editor in batch and I'm using set /p to get user input and write that to a file. When I type in something like "hello" or "hello " it works fine, but as soon as I write something with a space and another character after than, like "hello world", the window closes. My code was: set /p append=Write what you want to append: Then I tried: set /p "append=Write what you want to append: " which i found online, but it didn't work. pause isn't of any help because the

How to execute postgres' sql queries from batch file?

家住魔仙堡 提交于 2019-12-21 04:34:10
问题 I need to execute SQL from batch file. I am executing following to connect to Postgres and select data from table C:/pgsql/bin/psql -h %DB_HOST% -p 5432 -U %DB_USER% -d %DB_NAME% select * from test; I am able to connect to database, however I'm getting the error 'select' is not recognized as an internal or external command, operable program or batch file. Has anyone faced such issue? This is one of the query i am trying, something similar works in shell script, (please ignore syntax error in