A troubled IT Technician looking for help here! I have 2 batch files that I need to put a GUI to instead of the end user just looking at the cmd line, therefore I need to convert the code to VB. Here's the two pieces of code that I have to tried to convert without success:
@ECHO OFF
ECHO Contract Folder Creator v0.99
ECHO -----------------------------
ECHO.
ECHO Please enter the Client name:
SET /P CLIENT=
ECHO.
ECHO Please enter the Job name:
SET /P JOB=
ECHO.
\\server\Archive\psexec \\server "A:\NewContractBE.cmd" %CLIENT% %JOB% > NUL
Second File:
@ECHO OFF
ROBOCOPY "C:\Administration\New Sales Folder" "C:\Contracts\%1\%2" /E /COPY:DAT > NUL
MKDIR "A:\Contracts\%1\%2\Not Backed Up" > NUL
MKDIR "A:\Contracts\%1\%2\Not Backed Up\Other Documents" > NUL
MKDIR "A:\Contracts\%1\%2\Not Backed Up\Pictures" > NUL
MKLINK /J "C:\Contracts\%1\%2\Not Backed Up" "A:\Contracts\%1\%2\Not Backed Up" > NUL
ECHO Done!
Any help will be much appreciated!
Many thanks, Joe
Set WshShell = WScript.CreateObject("WScript.Shell"): WshShell.Run "cmd /k dir c:\windows\*.*", 0, false)