Returning results to basic

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Darkone
Posts: 2
Joined: 21 Jun 2009 07:53

Returning results to basic

#1 Post by Darkone » 21 Jun 2009 08:49

Hello!
Is there a way to return results of a batch function, within a bat file, for a Basic program?

Thanks!

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 22 Jun 2009 11:14

More details? What results do you need returned? In what format? What does the Basic program need?

Darkone
Posts: 2
Joined: 21 Jun 2009 07:53

#3 Post by Darkone » 22 Jun 2009 17:45

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?

RElliott63
Expert
Posts: 80
Joined: 04 Feb 2009 10:03

#4 Post by RElliott63 » 23 Jun 2009 07:41

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).

Post Reply