net use

  1. Shivito1

    B4J Question jshell net use command

    I have tried many different ways to accomplish this however to no avail. here is my code. Dim runit As Shell Private switches As List switches.Initialize switches.Add("/user:johns") switches.Add("password") runit.Initialize("net use J:",$"\\example\windows\share"$,switches) runit.RunSynchronous(-1)
  2. Shivito1

    B4J Question Inline java use vairable

    Code: #if java public static void foo() { try { @SuppressWarnings("unused") String command = "c:\\windows\\system32\\net.exe use f: " + x ; Process p = Runtime.getRuntime().exec(command); System.out.print("does not = 1"); } catch (Exception name) {...