git on UNC path
This worked for me: git.exe clone “d:/dev/SDK” “//comp1/Proj/git/SDK/”
This worked for me: git.exe clone “d:/dev/SDK” “//comp1/Proj/git/SDK/”
To piggy-back on @Endoro’s answer (I lack the rep to comment): If you want to change the system-wide environment variables, you have to use /M, a la: setx PATH “%PATH%;C:\Program Files\MySQL\MySQL Server 5.5\bin” /M setx.exe is picky about placement of the /M, BTW. It needs to be at the end.
The error you saw means there’s no such program in your %PATH% (external command) and it’s also not a built-in shell command (internal command). Install OpenSSL on your machine. You will also need to check that its installed location is in your %PATH%. By default it probably won’t be. As an example, suppose OpenSSL is … Read more
You can have this behaviour on double click by changing HKEY_CLASSES_ROOT\batfile\shell\open\command default value from: “%1” %* to: “C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\wt.exe” -p “Command Prompt” “%1″ %* or by using ftype command: ftype batfile=”C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\wt.exe” -p “Command Prompt” “%1” %* You have to change <user> with the current user name directory and of course, this wt.exe path (C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\) is if … Read more
Found an answer on the net here. Basically, suppose that we want to run this query: Select c_id, c_first_name,c_last_name, c_address,last_modified_date from customer where last_modified_date >=@start_date and last_modified_date <= @end_date; We can pass ‘start_date’ and ‘end_date’ like this: /usr/bin/mysql –uuser_id -ppassword –h mysql-host -A \ -e “set @start_date=${start_date}; set @end_date=${end_date};\ source ${sql_script};” > ${data_file}
Locate the path of csc.exe and add it your PATH environment variable. In my case, the path for 64-bit C# compiler is C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Similarly, you can look for 32-bit C# compiler in C:\Windows\Microsoft.NET\Framework under different .NET framework version directories There will be csc.exe for all versions like v2.0.XXXXX and v3.5. Select the one with the … Read more
It tells taskkill that the next parameter something.exe is an image name, a.k.a executable name C:\>taskkill /? TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] Description: This tool is used to terminate tasks by process id (PID) or image name. Parameter List: /S system Specifies … Read more
Microsoft’s just released Powershell. (about 2 years ago) I’ve already downloaded it; didn’t try it much, but seems a nice tool.
You need to escape the | character to prevent its being interpreted at the time of parsing the loop command. Use ^ to escape it: FOR /f “delims=” %%A in (‘dir /b “my_dir\*.csv” ^| find /V “summary”‘) do ( rem do what you want with %%A here ) Once escaped, the | becomes part of … Read more
I got the same error as you. But dystroy is correct: You can’t run del or any other command built into cmd because there is no del.exe file (or any other del-executable for that matter). I got it to work with: package main import( “fmt” “os/exec” ) func main() { var c *exec.Cmd switch runtime.GOOS{ … Read more