Skip to content

Datsent/CFU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFU

Script by PowerShell for copy and format flash drive.

Description

  • Skript triggered by inserting USB flash in to PC.
  • Automaticly copy files in flash to path directory. Default user Desktop in folder CopiedFiles.
  • After copy, format USB flash drive and eject it.
  • For Windows systems

Deployment

To deploy this project run

  start.bat 

Before Using do the next changes:

File start.vbs

Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "PATH TO <start.bat>" & Chr(34), 0
Set WinScriptHost = Nothing
  • Replace PATH TO with path to file start.bat.

File start.bat

Powershell -executionpolicy remotesigned -File  PATH TO <usb.ps1> > PATH TO <log.log>
  • Replace PATH TO with path to file usb.ps1 and to log.log.

Support

For some error of Authorization run two lines below in PowerShell as administrator:

Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned

About

Scrip by PowerShell for copy and format flash drive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors