file-location

Where is mstest.exe located?

余生长醉 提交于 2019-11-28 07:07:27
I need to run mstest from the command line - where in the world is this exe located? Can anyone give me a clue? Edit: I only have Visual Studio 2010 installed for %x in (mstest.exe) do @echo.%~dp$PATH:x from the Visual Studio Command Prompt is your friend. For me it's in C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ Type where mstest.exe into a Visual Studio Command Prompt... Dave Kennedy I stumbled across this post because I'm trying to automate some web tests. You can run >mstest /TestContainer:some.webtest from the visual studio command prompt, sure - but when you slap

How to get the current working directory using python 3?

谁说我不能喝 提交于 2019-11-27 13:23:47
问题 When I run the following script in IDLE import os print(os.getcwd()) I get output as D:\testtool but when I run from cmd prompt, I get c:\Python33>python D:\testtool\current_dir.py c:\Python33 How do I get same result which I got using IDLE ? 回答1: It seems that IDLE changes its current working dir to location of the script that is executed, while when running the script using cmd doesn't do that and it leaves CWD as it is. To change current working dir to the one containing your script you

Where are the recorded macros stored in Notepad++?

六眼飞鱼酱① 提交于 2019-11-27 09:22:27
问题 I have recorded a macro that I want to share with my work colleague. In what location are these recorded macros saved, so that I can add it to his machine? If interested, the macro is for taking a list of values and adding quotes and comma so that it can be used in the WHERE clause of of an SQL query ( WHERE x IN ('value1','value2','value3') ). 回答1: In Windows the macros are saved at %AppData%\Notepad++\shortcuts.xml ( Windows logo key + E and copy&paste %AppData%\Notepad++\ ) Or: In Windows

File path or file location for Java - new file()

橙三吉。 提交于 2019-11-27 06:04:16
问题 I have the following structure for my project. In Eclipse: myPorjectName src com.example.myproject a.java com.example.myproject.data b.xml In a.java , I want to read b.xml file. How can I do that? Specifically, in a.java , I used the following code: DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Document doc = docBuilder.parse (new File("data/b.xml")); This code cannot find b.xml . However,

Where is mstest.exe located?

旧城冷巷雨未停 提交于 2019-11-27 01:43:57
问题 I need to run mstest from the command line - where in the world is this exe located? Can anyone give me a clue? Edit: I only have Visual Studio 2010 installed 回答1: for %x in (mstest.exe) do @echo.%~dp$PATH:x from the Visual Studio Command Prompt is your friend. For me it's in C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ 回答2: Type where mstest.exe into a Visual Studio Command Prompt... 回答3: Since Visual Studio 2012 (at least the express versions) MsTest.exe is called vstest