Page 1 of 1

Returning results to basic

Posted: 21 Jun 2009 08:49
by Darkone
Hello!
Is there a way to return results of a batch function, within a bat file, for a Basic program?

Thanks!

Posted: 22 Jun 2009 11:14
by avery_larry
More details? What results do you need returned? In what format? What does the Basic program need?

Posted: 22 Jun 2009 17:45
by Darkone
I'm passing a simple example to make easy the comprehension.

Shell ( "findFolder.bat folderToFind")
...
So, at the end, the "findFolder.bat" shoud return the path to the "folderToFind" folder, to a Basic's variable.

I don't know how to make this possible in batch. All that I find are explanations about returning to a batch the results fom a batch function. Sometimes at the same bat file.

Is there a way?

Posted: 23 Jun 2009 07:41
by RElliott63
I believe that in basic there's an internal function to retrieve ENVIRONMENT variables. You're probably going to have to explore that direction. I believe it's GetEnvVar (or something like that).