|
-
Oct 16th, 2018, 07:19 AM
#1
Thread Starter
Member
.Bat Script into VB.NET
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:
@echo off
REM net use * /DELETE /Y
net use \\...\IPC$ /USER:USERNAME PASSWORD
net use \\...\IPC$ /USER:USERNAME PASSWORD
REM pause
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|