For some reason, our dev deployment is done by copying an updated .dll file to the GAC (Global Assembly Cache) by dragging and dropping it to the C:\Windows\Assembly folder.
I tried to create a batch script that contains the following code:
XCOPY d:\source\sample.dll c:\Windows\Assembly
but this seems to not work.
I was told it is because dragging the .dll into the Assembly folder does not copy it, but installs it somehow.
Is there a way to do this using a batch?
We do this 20 times per day, so its really time consuming to do this manually every time.
Try gacutil. Take a look here it seems like a duplicate.
BTW: Assembly tag is for low-level assembler.
Related
I just finished coding my c program in visual studio (VS) and what I had done is just drag the compiled .exe file out of the folder to run it on other computers, except on other computers for that to work I guess I need VS since it says the MSVCR110D.dll is missing which is from VS. So how can I run my program on other computers that don't have VS?
You can use IExpress which is used for distributing self-contained installation packages. It is there in every windows machine preinstalled. Using this utility you can make the executable .exe which will be incorporated with dependent dlls. You can see Step by step guide, to see how to use it.
Follow these steps
https://msdn.microsoft.com/en-us/library/3w7axy17.aspx
In your output window it will show you where you can find the exe file, usually something like "ProjectName/Debug/Release/"
If you have added any external libraries you will have to copy any DLL files in that folder with the exe (You can combine them with some applications if needed)
You will also have to make sure that you have the correct version of the .NET Framework on the PC that you are trying to run your program on
Below is the scenario for my problem for pro*c code.
In my new project previously they used the batches to call the pro*c code. But due to new requirement we need to call the same code from online(forms). They are 4-5 .pc files which needs to be called on same action asynchronously.
For above I thought to create another .pc file which will call these 4-5 .pc files. But I don't know whether we can call one .pc file in another .pc file. The code which is existing is very huge.
If we can call, can I have some idea how we do that?
Your .pc files which are currently being run as part of the batches will presumably have been compiled into executable binaries that are being run.
This is an Oracle forms question rather than a Pro*C question. You need to work out how to execute these binaries from Oracle forms rather than as part of the batches.
See http://docs.oracle.com/cd/B10501_01/appdev.920/a97269/pc_20exi.htm for information on how you might do that.
I have got a solution that uses a .bat file to start. I need to make it a .exe. I have used different tools like [BATch to EXE], [Bat_to_exe_converter], Bat to Exe Converter from [f2ko] which was the most modern one. I need help on the last one which is more sensible to work. or any other solution that makes a working .exe file. Right now, after converting the file to exe according to dependencies the start-up process will not complete. I should mention that the bat file is the Pentaho start-up file.
I have also used IEXPRESS from windows but the error after running the result exe is:
"Error creating process . Reason: The system cannot find the file specified."
Thanks,
Sounds like you need Carte. Carte is a web service that allows remote execution of jobs and transforms.
Carte User Doumentation
You'll probably also need to see this:
Carte as a Windows Service
I have a managed exe calling a managed dll, both written in c, and compiled using vs2010 c++.
When I run the program I get error that program can't start because the dll is missing from my computer.
In the linker, under Linker->Input->Additional dependencies I have added the folder containing the dll lib. Also, in the Linker->General section I have listed the folder under Additional include libraries.
I am clueless...
The problem is that the dll was not in the same dir as where the .exe was being executed. However, since I didn't want to manually copy the dll each time, and since it was being used by other .exes, the better solution was to add a post-build event.
One more important note: Afraid of getting nicked with another -1 for asking a bad question, I spent a couple of hours coming up with the magic potion/incantations needed to do such a post-build copy. Here it is. Note the use of the macros, the /Y, and especially the quotes around the whole mess of each pathname.
xcopy /Y "$(SolutionDir)x64\Release\mcDll.dll" "$(SolutionDir)stream\x64\Release"
I have a script (a.bat) that calls 2 executables (b.exe and c.exe) and I would like to create a single exe that would call a.bat automatically.
Is it possible?
Any simple program to do this?
Ps.: Info: The Exe's do make other files that are deleted in the end
Not directly, no.
The simplest way to accomplish this with off-the-shelf tools is to use an archiver that can create self-extracting archives and allows to specify a file to run after extraction. For example, free Info-Zip tools support an autorun command. WinRAR (commercial) allows to define complex scripts with GUI.
An install engine can be used for the same purpose. For a couple of examples, there are NSIS and Inno Setup (both free).
A (relatively) more complex solution is to write a third executable that will extract payload from its resources and run the batch file. This way you have full control over what happens.
This One:Bat To Exe Converter
It has the "Include" option that can include the exe file
when the compiled exe file run
it will release it
and you can run it!