|
Simple; create a console-application that retrieves the path. Call it from the batch-file.
That's how it SHOULD be done. If the network-admin complains that he won't allow foreign executables, simply upload the sourcecode to do it (as a text-file) and compile it on the target-machine itself.
If he still complains, make it a simple powershell-script. If he keeps complaining, send him here.
Yes, can also be done with the commands already available, and that way should be avoided. A hint below;
REGEDIT.EXE [ /L:system | /R:user ] /E exportfile.REG "registry_key" Now you have the complete key in a text-file. Next, research "FOR".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have made the same suggestion already; they don't want real programming.
|
|
|
|
|
..if they don't trust you with a compiler and a keyboard at their terminal (that was one of the suggestions), then why do they allow you on the network?
--edit;
Are you allowed to invoke executables that exist on the system, and to create text-files?
If yes, create a text-file by writing the source to read "a" registry-key and compile to the temp-dir. Invoke from there using the batch-file and delete when done
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
I'm Isuru Perera working with my university final year project.I want to detect the most close corner(edge) of a image(capturing continuously by web camera) to the web camera.Can you please help me out with this.
Thank you
|
|
|
|
|
Your project has been set to test how much you have learnt during the course, not to test whether you can get other people to do your work for you.
If you have specific questions about part of your code, then feel free to ask them. However, nobody here is going to write the code for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Dim control As Object = Me.FindControl(ControlId)
If (ValuStatus) Then
If DbValue.ToUpper() = SelectedValue.ToUpper Then
control.Style.Add("disabled", "true")
Else
control.Style.Add("disabled", "false")
End If
Else
If DbValue.ToUpper <> SelectedValue.ToUpper Then
control.Style.Add("disabled", "true")
Else
control.Style.Add("disabled", "false")
End If
End If
|
|
|
|
|
Please do not cross post...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
It should be control.Attributes.Add...
disabled is not a style (css) it is an attribute.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello !
I want to build a MVC 4 app database using Entity Framework Code First .
I have the following problem : I've tried to create a local database with 2 tables in it (I declared 2 classes and then attached them in a DbContext class) , and then wrote the following connection string :
<add name="RUDbContext" connectionString="Data Source=(LocalDB)\v11.0;MultipleActiveResultSets=True;AttachDbFilename=|DataDirectory|\RUDb.mdf;Integrated Security=True" providerName="System.Data.SqlClient"/>
The database doesn't seem to be created after running the application , since it doesn't appear in the Server Explorer and in the App_Data Folder .
I use Visual Studio 2012 .
Can you please help me solve this problem ?
|
|
|
|
|
|
I managed to solve the problem by creating the model using an existing database . Thanks !
|
|
|
|
|
Hey Guys,
Creating a small tool with c# which will fetch the values displayed in the command prompt and display in an User Interface.
I run the below command in Command prompt,
Corflags.exe "MyApplication.exe"
Output:
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 11
ILONLY : 1
32BIT : 1
Signed : 1
I want to read the value of CLR Header, 32BIT, PE in the command prompt and want to display in a Text box in my front end.
How do i fetch the values ?
Please assist.
Cheers,
|
|
|
|
|
You have already posted this question below and received an answer.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hey Guys,
Creating a small tool with C# which will fetch the values displayed in the command prompt and display in an User Interface.
Corflags.exe is a .Net SDK tool, which is used to display the architecture of .Net developed EXEs
and helps to change the complier (32bit or 64 bit)
Examples: (I want to know the details of MyApplication.exe)
Corflags.exe "MyApplication.exe" (This command was ran in a command prompt)
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 11
ILONLY : 1
32BIT : 1
Signed : 1
I want to capture the value of CLR Header, 32BIT, PE and want to display in a dialog box in my front end.
How do i fetch the values ?
Please assist.
Cheers,
-- modified 20-May-14 10:30am.
|
|
|
|
|
Use the Process Class[^] which allows you to run the command and capture its output to your program.
|
|
|
|
|
I see your repost, and raise you a self-reference: ProcessCommunicator[^]
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
You can also send the output of the program to a text file, and then read that file
Corflags.exe "MyApplication.exe" > C:\Temp\Output.txt
Execute it with Process.Start .
|
|
|
|
|
can any one help me out in making check printing software
|
|
|
|
|
|
Many people can help but you need to ask a specific question.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I wrote a .net 4.0 WPF app for a client targeting Windows Server 2012 R2. He now also wants to run it on WinXP. He installed SP3, but the app only runs if he runs logs into the PC as admin.
I haven't worked with XP in a long time.
What do I need to do to get it running without logging in as admin?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
.NET 4.0 is supported on XP SP3, the problem is that XP SP3 is unsupported
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
|
.NET 4.0 is not supported on XP SP3.
.NET 3.5 is supported on XP.
Soooo either tell him XP isn't supported, Microsoft has ended support for it after all, or recompile your app on .NET 3.5 and hope you don't have to rewrite stuff where you've used .NET 4.0 specific stuff.
|
|
|
|
|
I know it's not supported, but can I get it to run without Admin mode?
If it's not broken, fix it until it is
|
|
|
|