I want to create some simple batch files, that require USB drive letter to be automatically detected, with no user action.. Instead of asking user for drive letter I need it to be automatically grabben and used. The best method for this is using a variable.. yes, USB drive in use should be the only one attached.. I know this limitation, and I need it.  I searched in many forums, I got these answers:  "%~d0", "%HOSTDRIVE%:", %cd%  The first two variables did not work. The last one should work if the batch file exists in the root of the drive, which is not my case.  I need a USB drive variable that works anywhere, without the limitation of being launched from the drive itself.  Usage examples: chkdsk %HOSTDRIVE&amp;: /f Convert %HOSTDRIVE&amp;: /FS:NTFS  (To be run from a batch file (.bat) or from an .exe that is converted from .bat "I know how to convert it, and I know how to obtain admin privileges, if needed".. just need the variable, thanks for help)
i Need a batch file to create a folder "test" in every removable device than i plug in my computer (pendrives and etc)  i am trying something like this  set "extDrive=" for /f %%D in ('wmic volume get driveLetter^ where drivertype=2 ) do set extDrive=%%D mkdir "%extDrive%\test"   Someone can tell me why this is not working ??
After parsing collada files I found out that we have to load two(or more) indices each pointing to say a vertex or normal etc. like this (&lt;p>3 0 2 0 0 0&lt;/p>)  Is there a way to load (and use)these indices to indices buffer(ELEMENT_ARRAY_BUFFER) like this (vnvnvn...) ; where v is vertex pointer, n is normal pointer from the above. with vertices loaded to VBO1 like (vvvv...) and in VBO2 like (nnnn...). So that we dont have to repeat the normals in VBO2.  VBO like (vnvnvn...) is also ok. (and not something like this ), I'm not trying to use multiple indices buffer. I'm trying to put all the given indices into one index buffer and use them alternately.  (If I wasnt clear i will try for more clarification.) Set of left cosets is a group Let $N$ be a normal subgroup of $G$. Let $G/N = \{gN : g \in G \}$. Show that the $(G/N, \circ, 1_{G/N})$ is a group, where:  $\circ : G/N \times G/N \rightarrow G/N$ is defined by $(gN \circ hN) = ghN$ and $1_{G/N} = 1*N$.  Thanks for your help. How to prevent accidental clicks in the Save button when saving a node? I need to prevent accidental clicks in the Save button when a node is being saved.  I found this   which does exactly this. But the problem is that it uses javascript (jquery). Then if the user disable javascript this module is useless.  My problem is that in my website the user get points when creating nodes, so I have to prevent this in a more secure way.  How can I do this?   What do you think of these ideas?:  1) Maybe I would forbid the node being saved more than one time    programmatically instead of disabling the Save button.   2) Or better: I would allow the user to just save a new node every 5 minutes. Does construction of a Lightsaber require use of the Force? It's true that Lightsaber construction is a mandatory skill for a trained Force user, but I am not sure about it in reverse.  @DVK has commented on  that:     Grievous wasn't a Jedi (or a Force Sensitive) at all. He couldn't construct one.   I always thought that a Lightsaber was a normal piece of technology which even non-Force users could construct, and you only need Force sensitivity to master  Lightsaber skills. But, I could be wrong.  Does construction of a Lightsaber require use of the Force? If yes, what role does the Force play in the construction of a Lightsaber? Where's the energy in a boosted capacitor? Suppose I look at a parallel plate capacitor in its rest frame and calculate the electrostatic energy, $E$.  Next, I look at the same capacitor in a primed frame boosted in the direction perpendicular to the plane of the plates. In this frame, the $E$-field is the same strength, there is no magnetic field, and the volume over which the $E$-field extends is less by a factor $1/\gamma$. This suggests $E' = \frac{1}{\gamma} E$, but relativity states that energy transforms as $E' = \gamma E$.   Where is the missing energy? Matrices commute if and only if they share a common basis of eigenvectors? In iOS 7, when the phone is in Sleep mode and I receive a call, I don't see the "Decline" button. All I see is a green "Answer..." button that requires me to slide to the right to answer the call. Is there anyway we can change that? I know that there are buttons for "Remind Me Later, etc" but I want the "Decline" button.   It works fine when the phone is not in Sleep mode. Disable or prevent multitouch in Activity If you provide 0 as the dayValue in Date.setFullYear you get the last day of the previous month:  d = new Date(); d.setFullYear(2008, 11, 0); //  Sun Nov 30 2008   There is reference to this behaviour at . Is this a reliable cross-browser feature or should I look at alternative methods? Why does the set of all singleton sets not exist? How to remove time from date? Interpretation of mean absolute scaled error (MASE) Prove $f(x) = \sqrt x$ is uniformly continuous on $[0,\infty)$ I have seen a proof in   Below shows an alternative proof. Please correct me if im wrong.  Proof:  For any given $\varepsilon &gt;0$,  Let $\delta_1 = \frac{\varepsilon}{2}$, $\forall x,y \in [1,\infty)$ with $|x-y|&lt;\delta_1$  Since $|\sqrt x + \sqrt y|\geq2$  $$|\sqrt x - \sqrt y|  = \frac{|x-y|}{|\sqrt x+\sqrt y|} &lt; |x-y| &lt; \delta_1 = \frac{\varepsilon}{2}$$  Hence, $\sqrt x$ is uniformly continuous on $[1,\infty)$.  $\sqrt x$ is continuous on [0,1] , so $\sqrt x$ is uniformly continuous on [0,1].  So, there exist $\delta_2 &gt; 0$ such that $\forall x,y \in [0,1], |x-y|&lt;\delta_2$, $|\sqrt x -\sqrt y| &lt;\frac{\varepsilon}{2}$  Let $\delta = \min{(\delta_1,\delta_2)}$  $\forall x,y \in [0,\infty)$ with $|x-y|&lt;\delta$,  Case 1: $x,y \in [0,1]$ Proven above as $|x-y| &lt; \frac{\varepsilon}{2} &lt; \varepsilon$  Case 2: $x,y \in [1,\infty)$ Proven above as $|x-y| &lt; \frac{\varepsilon}{2} &lt; \varepsilon$  Case 3: $x \in [0,1] , y \in [1,\infty]$  $$|\sqrt x-\sqrt y| = |\sqrt x -1+1-\sqrt y| \leq |\sqrt x-1| + |\sqrt y -1| &lt; \frac{\varepsilon}{2} + \frac{\varepsilon}{2}= \varepsilon$$  by applying case 1 and case 2. I recently upgraded to 12.04 from 11.10 and since upgrading have been unable to log in to my user profile. The upgrade went okay and I can login to a guest session fine but whenever I try to login to my profile, after entering my password, I just return to the login screen.  I've changed my password in Root (passwd &lt;username&gt;) and can log in to tty1 with no issues, it's just in GUI I'm having problems.  I'm using a HP dv7 laptop, 32-bit Ubuntu install, Intel® Core™2 Duo CPU P7350 @ 2.00GHz × 2, Nvidia graphics.  Any help would be appreciated. Total space of a finite rank locally free sheaf, Vakil's 17.1.4 & 17.1.G Lead in ice block This is a strange question I would like to have some explanation accompanied with:  We have an ice block, with in it a lead block. This entire block is put into a glass of water, resulting in a rise of water level until the edge of the glass. The block stays floating on the surface. What will happen with the water level when the ice melts?  The answer is that it will drop, but how is this even true?? My thoughts are: - block floats on water, so rho(block) &lt; rho(water) - Archimedes law, the Fg of block = Fg of water pushed away. - Since a smaller volume of water has equal mass (and so Fg) to block, and ice is less dense than water, when it melts, no mass is lost, so it will take in less space??? Please help me with this point of thinking. I am using cURL to insert data into salesforce. It works with single record but I need to insert multiple records at a time. Is it possible to do so and is it possible via a REST interface? How to determine when Settings change on iOS Can't Prove formula from Sakurai's Modern QM @ Perturbation Theory I am studying Perturbation Theory from J.J. Sakurai's textbook Modern Quantum Mechanics. I am having trouble proving formulas on page 299 (5.2.5) and (5.2.6) from the previous ones [mainly (5.2.4)]. Can anyone help?  This is a problem of working with perturbation theory when the non-perturbed state has degeneracy. To elaborate I do not get why $(E-H_0-\lambda P_1VP_1)$ is not singular.  More importantly is the equation below correct and if so why:  $$(E-\lambda P_1VP_1)|l \rangle = E_D^{(0)}|l \rangle $$  That is the core of my problem. If the above equation - in the framework of Sakurai's statement of the problem - is correct I can work out all the rest on my own. However I do not get why this equation would hold true. If $p,q,r$ are all primes,and $p|qr-1$,$q|pr-1$ and $r|pq-1$,find all possible values of $pqr$.