if i got a c++ executable file like this: executable.exe and i want to add some parameters like:
executable.exe +username = pino
how do i get in c++ that i filled in pino as my username?
I found this question being asked on several places on the internet (including the File protocol MSDN page) but no clear answer.
So, if I am calling my application like this:
file://c:\myapp.exe
is there any way to pass it some command line arguments, like /nospashscreen=true
Things I've tried:
file://c:\myapp.exe?/nospashscreen=true - launches the app, but with no command line arguments :(
Thanks in advance.
I have an x64 managed C++ class that needs to be tested using Visual Studio 2008. This class links to a x64 unmanaged lib
I'm not able to run my my tests because vstesthost.exe (the exe Visual Studio hosts my test) is x86 and not x64.
Ideas? the error generated is
rror: System.BadImageFormatException: Could not load file or assembly ... or one of its dependencies. An attempt was made to load
I have in the same folder a .bat and a .exe file.
I couldn't call the .exe file from the .bat unless I put the full absolute path to it.
Is there a way to don't specify the path?
As you all know, when you build a project with an app.config file it gets copied to the bin directory and renamed $(targetFileName).config.
Is it possible for it to be called something else?
For example if my executable is called myApplication.exe, can I have the config file called settings.config as opposed to myApplication.exe.config?
Cheers
Hai guys,
I ve developed a salary calculating software using vb.net.... Its working fine and i ve converted it to an exe file... My drawback is it can be copied and pasted in another system very easily... I want to generate a key for the exe file and while installing the key should be used and when installation is completed ,the key should not be used again... Is this ya secured one or give me some ideas how it can be done....
Created basic C++ DLL and exported names using Module Definition file (MyDLL.def).
After compilation I check the exported function names using dumpbin.exe
I expect to see:
SomeFunction
but I see this instead:
SomeFunction = SomeFunction@@@23mangledstuff#@@@@
Why?
The exported function appears undecorated (especially compared to not using the Module Def file), but what's up with the other stuff?
If I use dumpbin.exe against a DLL from any commercial application, you get the clean:
SomeFunction
and nothing else......
In reference to my previous question regarding making the .EXE file for demonstration
http://stackoverflow.com/questions/2862067/how-to-make-exe-for-demonstration-of-a-android-software-built-in-eclipse
Can anyone explain creating batch file to launch the emulator?
I sometimes need to run gacutil.exe or installutil.exe, etc. from the command line. Is it OK to add the .NET framework directories to my system PATH? If so, which ones should I add and in which order?
I recently installed PHP on IIS/Windows 7, but it isn't working. I am getting the entire source file in the browser window.
FastCGI Settings shows c:\Program Files (x86)\PHP\php-cgi.exe
Handler Mappings has
Request Path: *.php
Modue: FastCgiModule
Executable: C:\Program Files (x86)\PHP\php-cgi.exe
Request Restrictions: File or Folder, All verbs, Script Access
I write a program helloworld.exe ,it depends on a.dll,I don't have the source code of the a.dll.a.dll is a dynamic dll ,how can i change it to static library?so I can link it to the helloworld.exe.
Is it possible that someone here could explain how to use this code. Please keep in mind i am a complete amateur, so simplifications may be needed.
Private Const cPGM = "C:\VB Forum\startup\Example.exe"
Dim oShell As IWshShell_Class
Set oShell = New IWshShell_Class
oShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyVBApp", _
cPGM, "REG_SZ"
How exactly is this code used? Is it saved as an .exe file and ran or what? Thanks for your prompt reply and informational feedback.
Hi I'm learning django and I did successfully start a site on Window XP by following the tutorial.
However, on Window 7 when I issued:
django-admin.py startproject mysite
python.exe was started and a window appeared to ask me to choose either python.exe or other program to open a file....
did I do anthing wrong or there are more tricks for window 7?
thanks.
When accessing a webdav using Windows Explorer (Not IE), the call is redirected thru the svchost.exe process (with webclnt.dll).
When i check get the pid of the process that is connected to the local port, i get the pid of the svchost.exe process.
How can i get the user account that the call was associated to?
I am writing a application that monitor the system's health, user should know when they need to defrag the volumes.
What I am thinking is calling the "defrag.exe /A" then analyze the output result to see whether it contains "You do not need to defragment this volume."
But it's slow and very bad, I fount that the "Analyze" is really quick on the MyDefrag.exe.
Anyone could tell me what's the best and simplest way?
I sometimes need to run gacutil.exe or installutil.exe, etc. from the command line. Is it OK to add the .NET framework directories to my system PATH? If so, which ones should I add and in which order?
I have an application on my server that is called leaf.exe, that haves two arguments needed to run, they are: inputfile and outputfile, that will be like this example:
pnote.exe input.pnt output.txt
The executable is at exec/, inputfile is at upload/ and outputfile is on compiled/. But I need that a PHP could run the application like that, then I want to know:
How could I do this on a server that have exec() disabled and I can't turn it on, because I don't have privileges to do it?
How could I echo the output of the program?
I'm using the latest TortoiseSVN and I've got *.exe in the global exclusion. But I now find that there are a couple of .exe files that I would like to check in.
Any way to do that?
as we know, we can run eclipse in command line as follows:
eclipse.exe -clean
I need run my eclipse rcp program in the same way
myrcp.exe path
then how can I get the parameter "path" in myrcp code?
thanks~
How to make VLC play .vlm config file in "With no interface mode" on windows?
So I have .vlm config file that should stream audio from mic to localhost so no vlc ui needed. If I say to windows "play .vlm file with vlc" it plays correctly starts server where I need and streams data. but how to do such thing manulay from cmd (so we suppouse we can call vlc.exe by vlc and we are now in folder with vlc.exe and vlcConfig.vlm file)
Hey all
so i wehnt ahead and opened up my .gitconfig file and manually input the
[core]
editor = 'C:/Program Files/Notepad++/notepad++.exe'
which would allow me to execute command:
(im trying to setup my .gitignore list)
"C:/Program Files/Notepad++/notepad++.exe" .gitignore
im JUSt not interested in typing this out every time that i need to make a file
SO ive heard something about editing PATH to allow me to replace the above with something like:
npp .gitignore
any help would be aprpeciated!
I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.
I'd like to debug PHP apps, but I want to setup Apache web server (httpd.exe).
I right clicked SERVERS, Add Server..., then noticed there is no option for httpd.exe, just for Glashfiish, JBoss, Apache Tomcat, and some other servers.
So, how can I add Apache Web Server (right from within the IDE just like other servers), and then properly debug PHP apps?
How can I find out the folder where the windows service .exe file is installed dynamically?
Path.GetFullPath(relativePath);
returns a path based on C:\WINDOWS\system32 directory.
However, the XmlDocument.Load(string filename) method appears to be working against relative path inside the directory where the service .exe file is installed to.
I just want to know how to pass arguments to windows services . The problem is , i am developed a windows application and then called it from Onstart() method . Now , i want to call the particular function from another project .
protected override void OnStart(string[] args)
{
Process.Start("C:\\Program Files\\macro.exe");
}
I want to call a function inside the macro.exe project with arguments . Any suggestions