windows-7

Change Default Program for a specific folder [closed]

吃可爱长大的小学妹 提交于 2019-12-12 01:38:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I do not know if this is possible (I suspect that it isn't), but can you change the default program for a file type for only a specific folder and the folder's sub-folders in Windows 7? What I am trying to do is set the html files in a specific folder to open in Notepad++ by default, and everywhere else, open

Non-English special folder names in Vista/Win7

心不动则不痛 提交于 2019-12-12 01:35:47
问题 In non-english versions Windows Vista and Windows 7 the usual special folders (such as the "My documents" folder) have dual naming: For instance "My documents" can be accessed (in german systems) via C:\Users\Username\Documents But is displayed (in explorer and file choosing dialogs) as C:\Benutzer\Username\Eigene Dokumente In my (C#) application, I would like to display the second form but need to use the first one internally. So I'm looking for some function to convert e.g. the result of

process 0 is using my port [closed]

[亡魂溺海] 提交于 2019-12-12 01:05:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am running a server program that listens on port 2811, and a few clients that communicate on that port. When I run netstat from the command line to see which process is using port 2811, I get that process 0 is also using it: C:>netstat -ano | find ":2811" TCP 0.0.0.0:2811 0.0.0.0:0 LISTENING 5448 TCP 127.0.0.1

javac not found after set environment variable

好久不见. 提交于 2019-12-12 01:04:34
问题 I am running on a windows 7 machine. I installed java jdk 1.7. I have set the Path and PATH environment variable to point to the java jdk 1.7/bin directory. executing java -version in the command prompt yields java version 1.7.0_45 ... however when I execute javac it says that javac is not recognized as an internal or external command ... I am really stumped on this problem. I really want to get this resolved ASAP. If anyone has experienced similar issues can you please share. All other

execute a python file globally from any path - windows7

拜拜、爱过 提交于 2019-12-12 00:54:50
问题 I have a script abc.py under C:\Python\Python35\Scripts\ folder and I have C:\Python\Python35\python.exe;C:\Python\Python35\Scripts;C:\Python\Python35; in my PATH . Still I'm not able to execute the python from anywhere else otherthan its directory. For example, I always have to go to C:Python\Python35\Scripts and then execute python abc.py . Else, it is giving below error - python: can't open file 'abc.py': [Errno 2] No such file or directory Any help here is much appreciated. 来源: https:/

VBA Sendkeys loop for print options

倾然丶 夕夏残阳落幕 提交于 2019-12-12 00:44:02
问题 Update: @Blackhawk provided me with the piece of information I needed to answer the question - scroll to the bottom for a working solution. We've had some annoying new print software installed on our systems which requires me to select each worksheet in an Excel workbook and set the print options (i.e. landscape, page size, collate preference, colour etc) on it separately. Support seems to think this is perfectly acceptable, and aren't much help. There are two work arounds that I've found,

How to pin to start menu using PowerShell

折月煮酒 提交于 2019-12-11 23:59:24
问题 I can pin some programs to taskbar on Win7 using PowerShell. $shell = new-object -com "Shell.Application" $folder = $shell.Namespace('C:\Windows') $item = $folder.Parsename('notepad.exe') $verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'} if ($verb) {$verb.DoIt()} How do I modify the above code to pin a program to the Start menu? 回答1: Another way $sa = new-object -c shell.application $pn = $sa.namespace($env:windir).parsename('notepad.exe') $pn.invokeverb('startpin') Or unpin $pn

Get ITaskbarList3 data of specific window

有些话、适合烂在心里 提交于 2019-12-11 23:29:44
问题 ITaskbarList3 interface provides only setter methods. Is there a way to get the information (like HWND list of the tabs) for a specific taskbar entry? 回答1: No that's not possible through the taskbar API. The system has been designed with the intention that you'll only work on taskbar buttons that you own. In which case there's no need for getters since you can remember for yourself what value you last passed to a setter, should you need to. 来源: https://stackoverflow.com/questions/6330355/get

Android Emulator not launching in Windows7, Android Studio 1.1, API22

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:17:07
问题 I have been able to successfully launch emulator in past. But lately I switched to Android Studio 1.1 and emulator does not launch at all, either with API21 or 22. In my "Run" Window I do get the message that "HAX is working and emulator runs in fast virt mode". but beyond that nothing appears on the screen. I am on Windows 7 , enterprise. Please help... Vikas 回答1: You are not the first person who haves problems with Android Emulators. They are slow, do not work in some situations and have

What is script working differently when called from Task Scheduler?

半腔热情 提交于 2019-12-11 21:21:34
问题 I have this script that I have scheduled on WIndows 7 using: SchTasks /Create /SC MINUTE /TN CheckHS /TR "C:\cygwin64\bin\bash.exe C:\ShellStuff\checkHS.SH" The script runs, but a BLANK line is written to checklog, when run from the scheduler. If I run the script from terminal the DATE gets added correctly. Why is it acting differently from the scheduler? checkHS.SH: #!/bin/sh set -x LOGDIR="/myd/Logs/" CURDATE=`date '+%A %W %Y %X'` echo $CURDATE >> $LOGDIR"checkLog" 回答1: Try after adding