Ikuti langkah-langkah berikut ini untuk copy dan move files di Windows PowerShell:
1. Ketik Windows PowerShell di Desktop Windows Server 2012R2
2. Pilih Icon Windows PowerShell
3. Di dalam prompt Windows PowerShell ketikkan script di bawah ini:
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting" –ItemType
Directory | Out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\Help" -
ItemType Directory | Out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\" –name
AppTest.txt –ItemType File | out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\Help\" –name
HelpInformation.txt –ItemType File | out-null
New-item –path "c:\Program Files\MyCustomSoftware\" -name ConfigFile.txt –
ItemType File | out-null
move-item –path "c:\Program Files\MyCustomSoftware\AppTesting" –destination
"c:\Program Files\MyCustomSoftware\Archive" –force
copy-item –path "c:\Program Files\MyCustomSoftware\ConfigFile.txt"
"c:\Program Files\MyCustomSoftware\Archive\Archived_ConfigFile.txt" –force
4. Tutup jendela PowerShell jika sudah selesai
Buat Video-video yang lainnya cek di Channel ini ya:
https://www.youtube.com/channel/UCikwGDYfTFWQxdiCqKvx6_w
Buat informasi seputar karir, travelling dan Reading kamu bisa mengunjungi blog ini ya:
https://nanangsadikin.wordpress.com/
Semoga bermanfaat.
Salam
Nanang
1. Ketik Windows PowerShell di Desktop Windows Server 2012R2
2. Pilih Icon Windows PowerShell
3. Di dalam prompt Windows PowerShell ketikkan script di bawah ini:
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting" –ItemType
Directory | Out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\Help" -
ItemType Directory | Out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\" –name
AppTest.txt –ItemType File | out-null
New-item –path "c:\Program Files\MyCustomSoftware\AppTesting\Help\" –name
HelpInformation.txt –ItemType File | out-null
New-item –path "c:\Program Files\MyCustomSoftware\" -name ConfigFile.txt –
ItemType File | out-null
move-item –path "c:\Program Files\MyCustomSoftware\AppTesting" –destination
"c:\Program Files\MyCustomSoftware\Archive" –force
copy-item –path "c:\Program Files\MyCustomSoftware\ConfigFile.txt"
"c:\Program Files\MyCustomSoftware\Archive\Archived_ConfigFile.txt" –force
4. Tutup jendela PowerShell jika sudah selesai
Buat Video-video yang lainnya cek di Channel ini ya:
https://www.youtube.com/channel/UCikwGDYfTFWQxdiCqKvx6_w
Buat informasi seputar karir, travelling dan Reading kamu bisa mengunjungi blog ini ya:
https://nanangsadikin.wordpress.com/
Semoga bermanfaat.
Salam
Nanang
Comments
Post a Comment