Showing posts with label Windows 10. Show all posts
Showing posts with label Windows 10. Show all posts

Tuesday, May 10, 2022

Run unbuntu in docker windows

 





Tuesday, January 15, 2019

WMIC - BIOS Info



Monday, January 14, 2019

Manipulasi String - Batch Programming


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off

set mystring=hellow maryadi

echo %mystring%

rem ngambil char dari index 0 sampai 6
set var1=%mystring:~0,6%
echo %var1%

rem ngambil 4 karakter terakhir
set var2=%mystring:~-4%
echo %var2%

rem ngambil karakter 3 sampai terakhir
set var3=%mystring:~3%
echo %var3%

rem menghilangkan kata 'maryadi'
set var4=%mystring:maryadi=%
echo %var4%

rem menghilangka spasi dalam kalimat
set var5=%mystring: =%
echo %var5%

rem mengganti kata
set var6=%mystring:maryadi=poipo%
echo %var6%

rem menghilangkan 2 karakter pertama dan terakhir
set var7=%mystring:~2,-2%
echo %var7%

Video bisa dilihat disini :



robocpy cmd - windows 10






Friday, January 11, 2019

Fix bootrec

bootrec /fixmbr
bcdedit /export c:\bcdbackup
attrib c:\boot\bcd -h -r -s
ren c:\boot\bcd bcd.old
bootrec /rebuildbcd


Friday, November 30, 2018

Uncaught Error: Class 'COM' not found - PHP 7.2.1

To solve this error. Just open your php.ini file, and search for "com_dotnet" and then enable that extension as shown in the picture below


Result :



Monday, November 19, 2018

Perintah-Perintah Command Prompt di Windows

cmd commandDescription
Basics:
callcalls a batch file from another one
cdchange directory
clsclear screen
cmdstart command prompt
colorchange console color
dateshow/set date
dirlist directory content
echotext output
exitexits the command prompt or a batch file
findfind files
hostnamedisplay host name
pausepauses the execution of a batch file and shows a message
runasstart a program as another user
shutdownshutdown the computer
sortsort the screen output
startstart an own window to execute a program or command
taskkillterminate a process or a application
tasklistdisplay applications and related tasks
timedisplay/edit the system time
timeoutwait any time
titleset title for prompt
verdisplay operating system version
w32tmsetting time synchronisation/time server/time zone
Network:
ftptransfer files to a FTP server
ftypedisplay file type and mapping
getmacdisplay MAC address
ipconfigdisplay IP network settings
netshconfigure/control/display network components
netstatdisplay TCP/IP connections and status
nslookupquery the DNS
pathpingtest the connection to a specific IP address
pingpings the network
routedisplay network routing table, add static routes
systeminfodisplays computer-specific properties and configurations
telnetestablish Telnet connection
tftptransfer files to a TFTP server
tracerttrace routes similar to patchping
Files:
attribdisplay file attributes
compcompare file contents
compactdisplay/change file compression
copy / xcopycopy files
diskcompcompare content of two floppy disks
diskcopycopy floppy disc to another one
erase / deldelete one or more files
expandextract files
fccopare files and display the differences
mkdircreate a new directory
movemove/rename files
renamerename files
replacereplace files
rmdir / rddelete directory
treedisplay folder structure graphically
typedisplay content of text files
Media:
chkdskcheck volumes
chkntfsdisplay/change volume check at startup
defragdefragment media
diskpartvolume management
driverquerydisplay installed devices and their properties
formatformat volumes
labelchange volume name
modeconfigure interfaces/devices
mountvolassign/delete drive mountpoints
verifymonitoring whether volumes are written correctly
volshow volume description and serial numbers of the HDDs
Miscellaneous:
forfor loop
gpresultdisplay group policies
gpupdateupdate group policies
perfmonstart performance monitor
promptchange command prompt
regadd/read/import/export registry entries

Author: Armin Oberneder

Source :
https://www.thomas-krenn.com/en/wiki/Cmd_commands_under_Windows

Set Autotuninglevel in Windows 10


Disable Heuristic in Windows 10


Melihat List Wifi dan Password Menggunakan CMD - Windows 10

Untuk menampilkan list wifi yang ada dilaptop dapat menggunakan perintah "netsh wlan show profile". Contohnya seperti terlihat dibawah :
Nah misalkan kita pengen ngeliad password untuk wifi "MITLA OFFICE". Jadinya kita eksekusi perintah ini :

Friday, November 16, 2018

Proses Instalasi VSDC Free Video Editor di Windows 10

Pertama-tama silahkan download filenya dari website resminya disini
Stelah didownload, silahkan double click filenya dan ikut step2nya seperti terlihat pada gambar dibawah ini














Siiipss.. segitu ajjah... sampai jumpa dipostingan berikutnya tentang VSDC... trimmsss... :-)

Proses Instalasi Open Shot Di Windows 10

Download open shot from this website...
 After above button is clicked. It will show below page. So just hit download button again to get the app...
After downloading it, just double click the file and follow the steps below









Okieee.... That's all... see yaa in the post about Open Shot Video Editor

Tuesday, November 6, 2018

Get Windows Product Key Using Command Prompt

We can use this command :

wmic path softwarelicensingservice get oa3xoriginalproductkey


example :

Wednesday, October 31, 2018

Seeding Tutorial for Beginner in CakePHP - Windows 10

In the previous post. We've learnt a little bit about migrations in cakephp. Rightnow we'll continue our study to seeder. Simply put, seeder is used to add, modify, or delete a data from our database using a simple program. In cakePhp, if we want to create a seeder, then we just simply type "bin\cake bake seed ourTableName". Example is shown below :

Next, we just have fill the $data variabel above like this :
Next for that seeder we can use this command "cake migrations seed --seed UserSeed" as shown below :
Then the result isss.....
Okiee... That's all... :D

Sunday, October 14, 2018

Migrations Tutorial For Beginner in CakePHP - Windows 10

In the previous post we have installed and configured cakePhp with postgreesql. So in this post we'll gonna learn about migrations in CakePhp. Simply put , migrations is all about creating, dropping, changing and removing database or table in cakePhp. So if we wanto create a table, it's really suggested to create it from migrations file because it will track every table that we created and it will be easier for another developer to create their own local environment with this migrations file only by using "bin\cake migrations migrate". 
In cakePhp, we can see all of available commands in migrations by using "bin\cake migrations". It will show 
Also we can see the migrations history in phinxlog table like this :
Ok... Let's create our first migration by running this command "bin\cake migrations create MyFirstMigration" 
So we named our first migration as MyFirstMigration and then we can see it in config/migrations/xxxxxxxxx_MyFirstMigration.php as shown in the picture below :

Next let's put something onto function change ()
So... From that function we will create a table named maryadi_table. It will contain a column name as string, description as text, level as integer, created and modified as datetime. The ID column will be added automatically and it will be primary autoincrement. 
Before we run migrate, we can check the migration status first like this :
We can see MyFirstMigration there... Next let's do the migration
We can see the result in our database :
Ok....Neext...
Let's try another way of creating migration file. We can use "bake" command as follows
So we created new migration file named MySecondMigration which has some column namely name as string, description as text and so on. The result is :
There is one thing to note here. If we want to create new table using bake, we need to use "Createxxxxx" at the front of our migration name. Also we can see that our table name is "my_second_migration". Okiee...Next we'll gonna add a new column to an existing table. In order to do that, we can use "....... AddxxxxToyyyy....". xxxx is the new table that will be added and yyyy is our current existing table. Example is shown below :

So by running that migration we'll gonna add power column to maryadi_table. 
As you might notice that at the end of each migration code, there is a $table->create and $table->update. That means creating and updating the table yeaaah...and rightnow we already have two migration files which is not yet migrated as shown below :
So let's run our migrations then and see the result as shown below:
Okiee... after learning how to add. Next we'll learn how to remove column. For removing column we can use a convension name like "RemovexxxxxxFromyyyyyyy". Example :

After running that migration, we'll see that power column is now gone.
Well... there are a lot of commands that's available for us to be used. But I won't cover it all in post. But I hope this post gives your a little bit way of thinking how to use migrations command in cakePhp so you can explore another commands by yourself ehehee... :-)
Okie that's all thank you so much...