Hi everyone,

I have an issue, I find a .Bat Script and I would like to translate it in VB.NET code. At the beginning, I wanted to just call the .bat using SHELL() or OpenFile(), I don't know, it could have worked ^^

But I can't take this easy way because the batch script is use to open a file access on the local network (where my application is published)

So, my purpose is to put it in my VB code to unlock the local network file and check the next update of the application.

This is not a hard code I think, but I know nothing about .bat file, so I hope some of you could explain me how I can do it.

Thank you in advance, if you need any information, do not hesitate

PS: The .bat script is :

.BAT Code:
  1. @echo off
  2.  
  3. REM net use * /DELETE /Y
  4.  
  5.  net use  \\...\IPC$ /USER:USERNAME PASSWORD
  6.  net use  \\...\IPC$ /USER:USERNAME PASSWORD
  7.  
  8. REM pause