|
And I need another 20k per year. At least you have Google to help you out.
|
|
|
|
|
BoneSoft wrote: And I need another 20k per year.
Is that all?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
It'd keep me happy for a while.
|
|
|
|
|
BoneSoft wrote: It'd keep me happy for a while.
Same here.
BoneSoft wrote: Try code model generation tools at BoneSoft.com
I will go and take a look
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Lemme know what you think. Basically an entity code generator that builds from sample XML, XSD, my little language, or database.
|
|
|
|
|
Dont worry, you will make 20k before he has read half of what Google will throw at him...
|
|
|
|
|
Sorry If I asked a bout a lot of things but i realy need a lot of information about these topics
thanks any way
Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
Hi Mona.
The things you ask for are so specific that you'd be guarantieed to get hits if you search for your topics on google.
Try searching for words like 'tutorial' or 'guide' combined with 'speech recognition', 'artificial intelligence', 'neural networks' etc.
Though 'artificial intelligence' spells ph.d to me
Best of luck and happy hunting!
-Larantz-
|
|
|
|
|
Thanks Larantz
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
They are all very large, broad, complicated topics. I'd start with google. And Goooooooood luck.
|
|
|
|
|
BoneSoft wrote: 20k per year
Looks like that you are giving the service as some promotional offer or a lucrative market-capture campaign.
Anyway, good if the joker understands the need of doing his preliminary homework prior to throwing open the question at a messageboard.
|
|
|
|
|
Actually, I said ANOTHER 20k / year. 20k alone is probably less than flipping burgers.
|
|
|
|
|
I'm trying to add robocopy to my yml file to help create artifacts. I'm struggling with the syntax, I think there are perhaps special characters or parsing rules for ps: or cmd: that I don't understand.
My goal is to invoke robocopy like this:
cmd: (robocopy XXX YYY) ^& IF %ERRORLEVEL% LEQ 4 exit /B 0
per this article on straightening out robocopy's non-standard return codes:
http:
My specific yml lines are:
before_build:
- cmd: (robocopy /mir . source /xd source external .git packages /NFL /NDL /NJH /nc /ns /np) ^& IF %ERRORLEVEL% LEQ 4 exit /B 0
what I get back in my build logs is:
'3' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1
|
|
|
|
|
monafr81 wrote: resources about how search engines Work and also resources about text recognition , speech recognition and artificial Intelligent
Here on CP are some articles about this topic.
Look[^] 'em up
[ My Blog]
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hello,
if I use the Procsess-Class to get environment variables of an process, so I dont' get all of them.
For Example
I start a DOS-Box and write:
set MYVARIABLE=XYZ
notepad
Now I want to get all environment variables of the process "notepad".
With "MyProcess.StartInfo.Environments...." I don't get the environment variable "MYVARIABLE"
Could anyone help me.
Are there other classes, methods or perhaps API functions which give me "MYVARIABLE" back.
Thanks for your help.
Best regards
Stephan
|
|
|
|
|
I may be wrong here, but I think when you type that in a DOS box, you're setting that variable only for that session. If you want to set permanent environment variables, go to Control Panel, System, Advanced, Environment Variables.
|
|
|
|
|
|
Hi,
this is how I understand it:
when a process starts, it gets a copy of the environment variables; it can add,
remove and modify them but that does not affect the outside world.
so when you open a command prompt, set a variable XYZ=123, run an exe, that exe will
see all variables including XYZ=123.
I havent done this, but I expect if you create a StartInfo, it then already copies
the current collection of environment variables, so you could add/remove/modify them
and only then start a process that would use that set.
Hope this helps.
|
|
|
|
|
Hello,
first many thanks to all for the answers, but my problem is another one.
So I want to try to explain my problem again.
And I hope someone can understand my problem.
I know my english is not so well.
I don't want to set,remove or modify an environment variable, I want just read all environment variables of a process.
So I wrote a program, which should identify all running processes on a maschine and then I want to get all environment variables of these seperate processes.
There are not my processes.
So I use for example : CurrentProcessID.StartInfo.EnvironmentVariables...
I get a collection with many environment variables but not the one I want to get.
I think I get all the variables which was defined in the system and the user environment but not in the process or session environment.
So I need a possibility to read all environment variables which are set during the process.
For example:
Someone starts a program on a maschine and this program sets some environment variables.
Now I want to read this special variable, only guilty for this process.
I hope I could explain my problem clearer.
Thanks
Stephan
|
|
|
|
|
Hi,
if I understand correctly, you want to know the current values for all envars in another
process ? Well AFAIK that is impossible: as I explained, a process starts of with a copy
of its parent process (see Process.StartInfo), but that copy is local data, it exists only
inside that process, and there is no handle or other way to get to it from the outside.
|
|
|
|
|
Hi,
this is what I meant. Correctly.
But there must be a way to get the information about the variables, because I know another programm, which get this informations.
Do you know the programm "ProcessExplorer". You can find this program on sysinternals.com.
Do you know another way ? For examples a WinApi-Function?
For example to get the parent id of a process I used the WinApi-Function "createToolhelp32Snapshot".
Maybe this is the correct way to get the information.
So I have to look.
If you know a function, please tell it.
Thanks
Stephan
|
|
|
|
|
Hi Stephan,
I tried SysInternals Process Explorer and as far as I can tell it shows the initial,
not the current, environment variables. So I continue to think seeing the actual values
is not supported nor possible on Win XP; only the process itself can read and write its
current values.
|
|
|
|
|
Hi Luc,
o.k. if you mean the process explorer shows only the initial environment variables, then you could explain me why the process explorer see more variables than my program.
Try this:
Start CMD
set TEST=ABC
notepad
Now search in process explorer the process "notepad".
Then doubleclick on it and look into the environments.
You can see the Variable TEST.
If I try to get this "TEST"-Variable with my program, I don't get this one with the methode Startinfo.EnvironmentVariables.
But I need this "TEST"-Variable.
Why ?
Stephan
|
|
|
|
|
Did you read my previous replies ?
Try this:
navigate explorer to the bin/debug folder of your C# program
Start CMD
do "dir" to make sure your exe is there
set TEST=ABC
nameOfMyCSharpProgram.exe
|
|
|
|
|
Hi Luc,
either I don't understand your replies, or you didn't understand my problem.
The programs which use the environment variables which I want to get are not my programs. So I don't know which environment variables they use. So I can't set this in a DOS-Box.
Another example:
You write a program. This program do nothing when it starts.
You write a methode which create a new environment variable, if a button is pushed. This environment variable is only guilty in your program, process, session.
Now you start your program but you don't push the button.
I start than the process explorer on the same maschine and search for your program/process.
The process explorer shows me all the environment variable which your program use.
I think these are the one, which stand in the user and system environment.
Then I start my special program.
This program should do the same as the process explorer.
My program shows me the same environmment variables which your program use.
Then you push the button. Your methode create a new environment variable.
I refresh the view of the process explorer. The process explorer shows me now one environment variable more. It shows me your new created variable.
I refresh the view of my program, but my program don't show me the new environment variable. Why?
I think that the dotnet framework cannot show me the variable, too.
I think I need a winapi-function.
For example to get the parent id of a process I used the createtoolhelp32snapshot-function. So I think I need a winapi function too.
Or did I do a mistake ?
My code snippet is the following.
private void button1_Click(object sender, EventArgs e)
{
listView1.View = View.Details;
listView1.Sorting = SortOrder.Ascending;
listView1.FullRowSelect = true;
listView1.Columns.Add("Name", 150, HorizontalAlignment.Left);
listView1.Columns.Add("Wert", 450, HorizontalAlignment.Left);
ListViewItem oItem;
listView1.Items.Clear();
Process[] localByName = Process.GetProcessesByName(textBox1.Text);
if (localByName.Length > 0)
{
Process oProcess = localByName[0];
foreach (DictionaryEntry de in _
oProcess.StartInfo.EnvironmentVariables)
{
oItem = listView1.Items.Add(de.Key.ToString());
oItem.SubItems.Add(de.Value.ToString());
}
}
}
To use the snippet you need on the form a listView, a pushbutton and a textbox-object.
If I haven't make an error in my code, do you have a code snippet who can read the environment variable, which is created in your example program ?
Thanks
Stephan
|
|
|
|