There's a program called MBRfix by Kåre Smith in Norway. It must be run with ADMIN privileges, and it requires multiple parameters... so, a user cannot simply right-click on it and choose &quot;Run as administrator&quot;! In order to use this program to help very inept users (like many old, first-time computer users with Windows 10, or 8 or 7), I need to create a batch/cmd file for them to simply click on and run; or at the most, right-click on and choose &quot;Run as administrator&quot;. But if I do that with this batch file: @echo off echo. MBRFIX.EXE /drive 0 savembr Disk0MBR echo. echo. pause  It always comes back with: &quot; 'MBRFIX.EXE' is not recognized as an internal or external command, operable program or batch file.&quot; (I've used both .bat and .cmd files, and in fact, it doesn't matter if you have any parameters/arguments at all, Win 10 simply will not run any program as ADMIN from inside a batch file like this!) I am working on coding my own program to open the Win UAC and ask user to run as ADMIN with built-in commands... But that will be very tedious compared to using Kåre's ready to go program. The reason neither &quot;runas&quot; nor &quot;psexec&quot; can be used is: They both require an ADMIN account with a login password... Well, my PC does not have one (on purpose) and neither do many other users who've had their PCs set up with good security (or, they were never set up as ADMIN). So, is this possible?  Or must we either school the inept user on how to open an ADMIN command prompt window (or PowerShell window) and use specific commands to navigate and parameters from a webpage or email in order to finally use mbrfix. Dan, TheStarman.
I have a batch file which is in a directory and must be run from there as well because it updates files within this directory. This works perfectly fine, except when the user runs the batch file as administrator (required on Vista). Then the starting directory is C:\Windows\System32. Is there any way to still be able to know from which directory the batch file was run? I dont want the user to enter the directory manually.
How to select a Master's thesis topic if your advisor won't suggest one? If a master's degree candidate needs to select a thesis topic, but their advisor is unwilling to offer suggestions on the matter, how should one go about selecting a thesis?   How might one select an area to study? How can one evaluate if if is a suitable topic? Does the thesis need to focus on an area which is relatively unexplored by prior research? Intellisense in IntelliJ no longer working How do I get a file extension in PHP? This is a question you can read everywhere on the web with various answers:  $ext = end(explode('.', $filename)); $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename);  $exts = split("[/\\.]", $filename); $n    = count($exts)-1; $ext  = $exts[$n];   etc.  However, there is always "the best way" and it should be on Stack Overflow. What is the equivalent of gksudo in Kubuntu/KDE? In regular Ubuntu (Unity/Gnome), I use gksudo to run GUI programs with root privileges. I'm trying out Kubuntu (or KDE) now -- what do I use? Notify more frequently than once a day? Is there a way to subscribe to a question and be notified more frequently than once a day?  I'd like to be notified immediately on any posts to a question. How to make crs transformation of a QgsVectorLayer? I need to transform QgsVectorLayers in python from one crs into another crs. By googling I found the following solution (), which works for points only:  crsSrc = QgsCoordinateReferenceSystem(4326)    # WGS 84 crsDest = QgsCoordinateReferenceSystem(32633)  # WGS 84 / UTM zone 33N xform = QgsCoordinateTransform(crsSrc, crsDest) pt1 = xform.transform(QgsPoint(18,5))   Is there a way to make a crs transformation of an entire layer? KML to Shapefile using GDAL (LIBKML) - MultiGeometry data not transforming I am trying to convert a KML file to Shapefile using GDAL (ogr2ogr). Regular KML files convert fine but KML files containing MultiGeometry features (eg: Geometry containing both Point and Polygon) do not get transformed.   The output is simply a blank shapefile containing no shapes or attributes.  I have tried this command:  ogr2ogr -overwrite -f "ESRI Shapefile" -where OGR_GEOMETRY='MultiGeometry' &lt;ouputfolder&gt; &lt;input kml&gt;   For an example, KML file which has MultiGeometry, you can see the us_states.kml hosted by Google.    Other info: I am using 'GDAL 1.10.1, released 2013/08/26' for windows. How can I count all the lines of code in a directory recursively? What is wrong with this query? (Unknown error parsing query) When I run the following query in query editor I get this error.  Error     Unknown error parsing query   Query  SELECT Id, OwnerId,Account.OwnerId FROM Contact where OwnerId = Account.OwnerId limit 100   Does anybody know what the problem is? How can I iterate over each file in a directory using a for loop?  And how could I tell if a certain entry is a directory or if it's just a file? What is "the ground"? Definition of Statistic I keep seeing conflicting definitions of a statistic. Is a statistic a random variable such that it is a function of the random variables of a random sample? Or is it the value of the function of the random sample, after each random variable of the random sample has taken on a specific value?   $$(1) \ S=f(X_1,X_2...X_n)$$  $$(2) \ s=f(x_1,x_2...x_n)$$  I haven't been able to get any clarification for this and I've seen the term statistic describe both situations Chrome: remove URL from autocomplete which doesn't show up in history? DNS, multiple nameservers and geolocation? Currently, when a DNS client makes a request for a DNS record (say, www.example.com., it needs to traverse the DNS tree. It asks the root servers for the location of com., which it then asks for the location of example.com., which it then asks for the location of www.example.com.. Thankfully, much of this is cached.  If example.com. has multiple, geographically diverse NS records listed, my understanding is that these are listed in random order to avoid all queries going to the first (or last) NS record listed.  This would appear to imply that a DNS resolver in Australia could choose a NS record for a nameserver that's located far away, perhaps in Europe, when there may be another authoritative nameserver that is much closer.  So, my question is: Is there any provision within the DNS spec to allow DNS resolvers to select an authoritative nameserver that's local to them? The only way I can see to achieve this is to have the NS records behind an anycast address and do local resolution that way. Would this work? Is there any other option? Using Zorn's lemma show that $\mathbb R^+$ is the disjoint union of two sets closed under addition. Creating lots of random cuts on a surface Here's an image of a cube with lots of edges added. It was created using knife tool and lots of clicking:    What would be the best way to randomly generate such cuts with less effort...? How is the system call in Linux implemented? When I invoke a system call in user mode,how did the call get processed in OS?  Does it invoke some some executable binary or some standard library?  If yes,what kind of thing it needs to complete the call? What is the difference between '/' and '//' when used for division? As a  developer I'm used to running through constructors:    class Test {     public Test() {         DoSomething();     }      public Test(int count) : this() {         DoSomethingWithCount(count);     }      public Test(int count, string name) : this(count) {         DoSomethingWithName(name);     } }   Is there a way to do this in C++?  I tried calling the Class name and using the 'this' keyword, but both fail. Creating polygons from points in Mapinfo