Take the painfully simple batch file:
echo hi
pause
Save this as test.bat. Now make a shortcut to test.bat. A command file is launched in the shortcut, which prints "hello" and then waits for the key to be pressed, as expected. Now add some argument to the target of the shortcut. You now have a shortcut for:
%path%\test.bat some args
The shortcut launches the batch file as before.
Now run the shortcut as administrator. (By the way, on Windows 7). You can use either right-click → "Run as administrator" or go to the properties of the shortcut and select the checkbox in the advanced section. Tell UAC that everything is in order, and once again the shortcut launches the batch file as expected.
Now change the arguments in the target shortcut to add double quotes:
%path%\test.bat "some args"
. ! , - . > test.log 2 > & 1 , .
( ), . . , , - , - , . - .
. , , . , . -, , .
, - , ? .