Command Line Arguments Batch

I'm trying to build a C# Project using Msbuild.exeSmall intro abt msbuild.exe:- Its an application which is used to build Visual studio projects even though visual studio is not installed in the system.

When a right click is made on the sln files (which is the project file) an new option "Build" was created (using regedit) and the option "build" was pointed to a script which is mentioned below:-

So for every sln files when a right click is made and Build is selected the above script will be executed.The issue is i need to use the corresponding file name in place of D:\Project\Computing.sln.For eg:- if i build a sln file placed in "D:\New Project\New Computing.sln" , "D:\Project\Computing.sln" have to be replaced with the new file name.

I need to take the sln filename as an argument and pass it to the script. The batch has to read the file name which im doubting whether it is possible..Please provide yours Ideas and Suggestions.

No offence intended but your description is pretty rough so I've re-written it:When you right click on a sln file an option build is available through the use of regedit.The build option refers to the script:clsecho offcd C:\Windows\Microsoft.NET\Framework\v4.0.30319msbuild.exe D:\Project\Computing.slnSo everytime the build option is clicked the above script is executed.What i need is to replace D:\Project\Computing.sln with the file i've clicked build from.

As for an answer to your question, i don't really see if this is possible but you could make a script that would detect the newest created .sln file and replace "Computing.sln" with the newest modified/created .sln file. Would that work for you?

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.