Showing posts with label change. Show all posts
Showing posts with label change. Show all posts

Saturday, 22 July 2017

Copy files and change name with PowerShell

Copy files and change name with PowerShell




A friend of mine asked if I could copy files from one folder to another and rename them according to the following format

YYYYMMDDHHMMSS.ext

here  source code:


 cls 
$source="C: ext72source"
$destination="C: ext72destination"
set-location $source
$files=get-childitem -Recurse
foreach ($file in $files)
{
if (!$file.PsIsContainer)
{
$newName=$destination+""+[string]$file.LastWriteTime.Year +
[string]$file.LastWriteTime.Month +
[string]$file.LastWriteTime.Month +
[string]$file.LastWriteTime.Day +
[string]$file.LastWriteTime.Hour +
[string]$file.LastWriteTime.Minute +
[string]$file.LastWriteTime.Second +
[string]$file.Extension
Copy-Item $file.FullName $newName
}
}

Then change source and destination variable in the script.
{ Read More }


Monday, 12 June 2017

Create CustomKeys txt file yourself Change CustomKeys Yourself

Create CustomKeys txt file yourself Change CustomKeys Yourself


Hi guys soo many people are asking me to create CustomKeys.txt file for different variations of keys. As i have end exams goin on right now, I cant keep creating customkeys for you. So i have decided to post a small tutorial on how to change existing keys to desired keys.

Here is a small examle, bcoz i am not gud at explaining :P

Example: we have SDFG,ER  if u want QWER,CV
  1. Open CustomKeys.txt file in wordpad.
  2. Go to replace window.
  3. Replace cffffcc00D to cffffcc00W, cffffcc00S to cffffcc00Q etc;
  4. Jus change S to Q,D to W, F to E , G to R, E to C, R to V.
  5. Now same principle goes for hotkey=S.
  6. Ex. hotkey=S to hotkey=Q and hotkey=D to hotkey=W etc;
  7. Thats it, u can change customkeys to any format u want
  8. Here are default values for SDFG key format

  • 4 skills S,D,F,G in order(same for research guild)
  • 2 extra powers E,R
  • Upgrade button (red plus button) and attribute bonus button in research guild Z
  • cancel button C
  • Change these values to your desired values as mentioned above, it will take jus 2 mins to change 
PS:  Be careful b4 changing some values, like if u wanna change D to W,G to R and R to D first change D to W,then R to D then G to R, else all keys will get mixed up

Download CustomKey.txt file of SDFG here
{ Read More }