How to hide console while running a batch file on windows [duplicate] - batch-file

This question already has answers here:
Hide Command Window of .BAT file that Executes Another .EXE File
(17 answers)
Closed 6 years ago.
In my project i am using the btach file to start the exe file. This batch file is triiggered from an external source(may be another exe). It works as expected. But it opens a console. We don't want any conosole to displayed.
Is there any way where we can hide this console.
We tried with -- console suppress, could not get the desired results.

This cannot be done as batch files use the cmd program to execute the desired code. All i can suggest is to make the code as quick and sharp as possible to have it on screen for minimal time, or execute the code using a third party program or a different coding program all-together.

Related

building a program without needing to .glade source [duplicate]

This question already has an answer here:
Linking glade file with program g++
(1 answer)
Closed 2 years ago.
I am programming something using C and Gtk+ library via Glade
I'm Compiling with a "makefile" methode and everything it is ok
but when I change the application.exe folder (like sending it to my friend) the application doesn't work
my question is there any way to compile it without needing to the glade file in the same folder?
Yes, check out GResource, which lets you embed files such as a Glade file into your executable.

Open .txt files with VS Code on Mac

Hi I use Visual Studio Code to run a C-Code, which opens a .txt file.
The problem is: I don't know where the file should be placed on my Mac, so it can open it seamlessly.
Can anyone help me out?
Thanks

Changing the icon of an exe resulted from building in CodeBlocks [duplicate]

This question already has answers here:
CodeBlocks - How to add an icon to a C program?
(1 answer)
How do I add an icon to a mingw-gcc compiled executable?
(3 answers)
Closed 4 years ago.
I made a little program in C (the content doesn't matter) and built it in CodeBlocks (GNU GCC Compiler), thus resulting in an executable file. I want to change the icon of said .exe file but so far I didnt succeed.
I tried Resource Hacker however the 'change icon option' seems unavailable. Also I dont want to change the icon of a shortcut of the .exe, but having the .exe keep its icon if i send it to someone. Any tips?

can we attach a process to VS programatically as soon as the process is created? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to set breakpoint at the very beginning of program execution
I have an application in C. I am using VS 2008 for the development. I need to debug the C code by attaching the process with the Visual Studio. In normal conditions, the process can be simply attached, but here it is a bit tricky.
Following is the scenario:
The problem is that application gives some unwanted messages as soon as the application is run, i.e. PROCESS is created. The time is too small to get the PID and attach it to the VS.
My question now is:
Can we do something( write some program or there is some workaround) so that we can attach the process as soon as it is created?
Thanks in advance.
Regards,
Abhishek Anand
The easiest way to do so is to set a break point in the start of your source code, and use the Visual Studio to start debugging the application. You can use F5 or Debug|Start Debugging menu item to do this.
If you have to wait for another process to start your erroring program, then download and install "Debugging Tools For Windows" if you have not already got it. It can be found here: http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx
It is free debugging tools from Microsoft for debugging on all supported Windows OS.
It includes an utility called GFlags. Use GFlags to set the automatic debug options on your target program. This is the easiest way to set your system to start a debugger that will automatically be started up when the target application starts. I prefer to use WinDbg.exe (it is included in the tools package), but you can have Visual Studio start up as your debugger if you prefer.
The link above includes links for Debugging help.

Save file in Windows 7 [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Save file with C fopen
I'm using C language to same a file in c:\SomeDirectory on Windows 7.
Is there any restriction on saving a file under this directory on windows 7?
I'm having trobles with saving this file on this folder, the Windows 7 doesn't allow me (even as administrator) to save the file.
On winXP the program works perfectly.
Could it be that User Access Control is enabled on your system? If you, can you disable for the specified folder and try?

Resources