Results 1 to 2 of 2

Thread: Vb.net enviroment

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    228

    Vb.net enviroment

    Hi
    i have a new problem with enviromental variable to set. I have tried with Qbasic but not managed to achieve then tried to conjoin with vb.net. Underneath the code below i have an example. But don't know where to start.
    Thanks

    Code:
    'Console.vb//console.exe
    Module Module1
        Sub main()
            System.Environment.SetEnvironmentVariable("ENVIRON", "new")
        End Sub
    End Module
    '-.-
    ::(%instance batch%)//run.bat
    @echo off
    :main
    console.exe
    echo %ENVIRON%
    set ENVIRION=
    echo Press any key to continue...
    pause>nul
    :end

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    228

    Re: Vb.net enviroment

    The executable must be runas with /c command
    instance:"cmd /c Console.exe"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width