In my Windows 10 computer, I have a VirtualBox Ubuntu 16.04 LTS VM in bridge adapter network setting. I have been able to use the hostname of the VM to SSH, Samba, and browse webpages inside the VM. Also, the Windows 10 computer has Cisco AnyCoect Secure Mobility Client installed, so that I can remotely access my company's LAN. Like, remote desktop into the office computer, accessing file server, etc. Recently, the IT department has told us to update the VPN client. After that, I have found the computer unable to resolve the hostname of the VM when the VPN is coected. When the VPN is discoected, the hostname can be resolved again. The updated version of the Cisco client is Version 4.2.03013....
ادامه مطلبI found script opening random files. I changed one thing and now it open random file from C:/ Can somebody tell me how to change it to open random file from C:/ and all subfolders? @echo off & setlocal :: start of main rem Set your path here: set "workDir=C:" rem Read the %random%, two times is'nt a mistake! Why? Ask Bill. rem In fact at the first time %random% is nearly the same. @set /a "rdm=%random%" set /a "rdm=%random%" rem Push to pushd "%workDir%" rem Count all files in your path. (dir with /b shows only the filenames) set /a "counter=0" for /f "delims=" %%i in ('dir /b ^|find "."') do call :sub1 rem This function gives a value from 1 to upper bound of files set /a "rdNum=(%rdm%*%coun...
ادامه مطلب