Press Windows+R to open the “Run” box. Type “cmd” into the box and then press Ctrl+Shift+Enter to run the command as an administrator. And with that, you have three very easy ways to run commands in the Command Prompt window as administrator.
beogradsko programiranje
Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts
Tuesday, October 22, 2019
Tuesday, November 20, 2018
All Mighty Scripts
Resize Jpegs into 75% in PDF:
path C:\Program Files\gs\gs9.20\bin
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
pause
------------------------
Resize Jpegs into 150% in PDF:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
pause
------------------------
//Csharp is much better than python for web searching, data mining and big data
//-----------------------------------
//Only for Windows XP, 7, 8, 10
using System;
using System.Windows.Forms;
using System.Net;
using System.Diagnostics;
using System.Net.Mail;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;
public class MyForm : Form
{
private Button btnDugme = new Button();
public MyForm()
{
this.Text = "Big data blender";
btnDugme.Text = "Start";
btnDugme.Width = 100;
btnDugme.Height = 40;
btnDugme.Top = 10;
btnDugme.Left = 10;
btnDugme.Click += new EventHandler(btnDugme_Click);
this.Controls.Add(btnDugme);
}
private void btnDugme_Click(object o, EventArgs e)
{
MessageBox.Show("Ide Mile lajkovachkom prugom... gyere Ide Meeley like-o-wach-kom prugom...");
try
{
using (WebClient client = new WebClient())
{
string htmlCode = client.DownloadString("https://www.google.rs");
//MessageBox.Show(htmlCode);
for (int i = 0; i < 1; i++)
{
//btnDugme.Text = i.ToString()+" %";
htmlCode = client.DownloadString("https://www.google.rs");
//htmlCode = client.DownloadString("http://www.bing.com");
if (htmlCode.Length > 2000)
{
htmlCode = htmlCode.Substring(0,2000);
}
Console.WriteLine(htmlCode);
Console.WriteLine(i);
Console.Write(" % ");
}
Console.WriteLine("Ide Mile...");
}
}
catch (Exception ex)
{
string a = ex.ToString();
MessageBox.Show(ex.ToString());
MessageBox.Show("No internet - Nema interneta !");
Console.WriteLine("Niste na internetu, konektujte se pa kliknite na dugme ponovo.");
Console.WriteLine("You are not connected to internet, please connect to internet and continue digging.");
}
}
private static void Main()
{
Application.Run(new MyForm());
}
}
----------------------------
MORE TIPS:
https://dictation.io/speech
https://www.google.com/intl/es/chrome/demos/speech.html
-----------------------------
CHECK THIS OUT:
https://software.intel.com/en-us/html5/hub/highlights
**
Tuesday, October 2, 2018
Asocijacija fajlova
U cmd.exe unesite:
C:\Users\Korisnik>assoc .txt
.txt=txtfile
C:\Users\Korisnik>ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
C:\Users\Korisnik>assoc .txt
.txt=txtfile
C:\Users\Korisnik>ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
Here's a script that worked for me on Windows 10
$exts=@("txt","log","csproj","sql","xml","flobble")
echo "## setting up file associations"
foreach ($ext in $exts){
$extfile=$ext+"file"
$dotext="." + $ext
cmd /c assoc $dotext=$extfile
cmd /c "ftype $extfile=""C:\Program Files (x86)\Notepad++\notepad++.exe"" %1"
echo ""
}
- Needs to be run in an admin powershell windows.
- Explorer immediately refreshed and showed new file icons.
Thanks to the other answers for the information I needed to make this work.
Ili preko Registry-ja:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\notepad_pp]
@=""
[HKEY_CLASSES_ROOT\notepad_pp\shell]
[HKEY_CLASSES_ROOT\notepad_pp\shell\open]
[HKEY_CLASSES_ROOT\notepad_pp\shell\open\command]
@="\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\" \"%1\""
[HKEY_CLASSES_ROOT\.pl]
@="notepad_pp"
I have achieved the correct FILE ASSOCIATION using these cmd commands. (just an example):
REG ADD "HKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command" /v @ /t REG_SZ /d "\"C:\\Program Files\\Noteepad++\\notepad++.exe\" \"%1\"" /f
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt" /v "Application" /t REG_SZ /d "notepad++.exe" /f
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithList" /v "g" /t REG_SZ /d "notepad++.exe" /f
assoc .txt=MyCustomType
ftype MyCustomType="C:\Program Files\Noteepad++\notepad++.exe" "%1"
(it's better to put them in .bat file)
How to associate a file extension to a program without making it the default program
Setting the following keys worked for me:
key HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/App Paths/<progname>: "" = <appPath>
key HKCR/Applications/<progname>/SupportedTypes: <fileExt> = ""
key HKCR/<fileExt>: "" = <progID>
key HKCR/<progID>/OpenWithList/<progName>
key HKCR/<fileExt>/OpenWithList/<progName>
key HKCR/SystemFileAssociations/<fileExt>/OpenWithList/<progName>
delete key and subkey at HKCU/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/fileExts/<fileExt>
Subscribe to:
Posts (Atom)