cmd

gradle windows java.io.IOException: CreateProcess error=206, filename is too long

﹥>﹥吖頭↗ 提交于 2020-01-05 06:38:25
问题 A couple of solutions to the problem of the windows path being too long are present for gradle: Add classpath in manifest using Gradle "The filename or extension is too long error" using gradle However, it is unclear to me how to handle this in a multi project setup. Would all sub-projects with the application plugin require these changes? Could this also be specified in the init.gradle file? Also is there a better workaround? Apparently https://github.com/viswaramamoorthy/gradle-util-plugins

Confused about command prompt, Visual Studio exe's and text files?

时光毁灭记忆、已成空白 提交于 2020-01-05 05:49:11
问题 The title doesn't really do this topic justice. It's actually quite simple, my problem that is. I have a program (code below) written in the C language. I want this program to create an exe file that can be ran through the command prompt console window and that will also take a text file as a parameter. So, long story short; I need it to say this on the command line in CMD: C:\Users\Username\Desktop\wrapfile.exe content.txt My only problem is getting the code right. I want to tell Visual

How to run embedded batch file using process.start in c# [duplicate]

余生长醉 提交于 2020-01-05 04:39:09
问题 This question already has answers here : Is it possible to embed a bat file in .exe and use it with the Process class? (4 answers) Closed 2 years ago . I add a batch file. let's say "batch.cmd" in my WPF application. I right click my project and add existing item, add my batch file in the project. I selected my batch file and change Build Action to Embedded Resource. After I build it, I saw this file add in project. Now I need to start my batch file in my code, I tried Process.Start("batch

PowerShell cannot find some Verbs of executable

自古美人都是妖i 提交于 2020-01-05 03:59:09
问题 I'm new to PowerShell. Now the task is to pin some programs to the Taskbar . This Tutorial is great and runs well in one of my Win7 32bit in Vmware. But same script cannot run in Win10 32bit in Vmware. So I modified the code and finally found it was because some Verbs are not found. My test code is as following: CLS $cmd = 'C:\Windows\System32\cmd.exe' Test-Path $cmd $Shell = New-Object -ComObject Shell.Application $Desktop = $Shell.NameSpace(0X0) $itemLnk = $Desktop.ParseName($cmd)

How to run Java applications without using an IDE or the command prompt

守給你的承諾、 提交于 2020-01-05 03:56:06
问题 This is more curiosity than a problem: I was recently wondering if there was a way to run compiled Java applications without using the cmd or an IDE such as Eclipse. I use Eclipse, but it isn't very useful if you want to run the program independently. Can you save Java files in Windows Explorer so you can create a shortcut for them? If so, how? Is there some sort of special extension to the file? I've heard of .JAR files, but I'm not sure what they are. Can anyone tell me how to do it? 回答1:

%PATH% on Windows 2008 Server actually not working

这一生的挚爱 提交于 2020-01-05 03:32:50
问题 As you can see below, %AppData%\npm is added in the system Path variable. I've also tried adding it to the User Path variable. The file grunt.cmd exists in the directory, but only works if I specify it with an absolute path. AKA, path does not work. C:\Users\TeamCity>echo %path% %AppData%\npm;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows \System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\10 0\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100

Run a batch file at folder's context menu

北城以北 提交于 2020-01-05 02:18:10
问题 I'd like to run this batch file (setenv.cmd) when I right click on any folder: @echo off SET CPLUS_INCLUDE_PATH=C:\mingw32\include;C:\mingw32\lib\gcc\mingw32\4.9.2\include; SET PATH=%PATH%;C:\Archivos de programa\7-Zip;C:\Archivos de programa\WinRAR;C:\usr\bin;C:\msys\1.0\bin;C:\gtk2\bin SET PKG_CONFIG_PATH=C:\gtk2\lib\pkgconfig;C:\usr\lib\pkgconfig @echo on I setuped my registry from this page, with the "prompt here". My question is how to open the console window from the selected directory

Run a batch file at folder's context menu

故事扮演 提交于 2020-01-05 02:18:05
问题 I'd like to run this batch file (setenv.cmd) when I right click on any folder: @echo off SET CPLUS_INCLUDE_PATH=C:\mingw32\include;C:\mingw32\lib\gcc\mingw32\4.9.2\include; SET PATH=%PATH%;C:\Archivos de programa\7-Zip;C:\Archivos de programa\WinRAR;C:\usr\bin;C:\msys\1.0\bin;C:\gtk2\bin SET PKG_CONFIG_PATH=C:\gtk2\lib\pkgconfig;C:\usr\lib\pkgconfig @echo on I setuped my registry from this page, with the "prompt here". My question is how to open the console window from the selected directory

At which point does `forfiles` enumerate a directory (tree)?

蓝咒 提交于 2020-01-04 23:31:35
问题 The command forfiles is intended to enumerate a directory and apply (a) certain command(s) on each item. With the /S the same can be accomplished for a full directory tree. What happens when the content of the enumerated directory (tree) is changed by the command(s) in the body of the forfiles command? Supposed we have the directory D:\data with the following content: file1.txt file2.txt file3.txt The output of forfiles /P "D:\data" /M "*.txt" /C "cmd /C echo @file" when executed in said

How to get rid of enclosing double-quotes in the expanded `forfiles` variables?

坚强是说给别人听的谎言 提交于 2020-01-04 16:57:34
问题 The forfiles command establishes several variables, indicated by a leading @ , which return data concerning the currently iterated item to the loop body. All the variables related to the path and name of the iterated item return the value enclosed in "" . Those are: @file , @fname , @ext , @path and @relpath . So: how can you get rid of the enclosing double-quotes? For example, the following code returns relative paths to text files in the given root directory: forfiles /P "C:\root" /M "*.txt