how to empty recyclebin through command prompt?

You can effectively “empty” the Recycle Bin from the command line by permanently deleting the Recycle Bin directory on the drive that contains the system files. (In most cases, this will be the C: drive, but you shouldn’t hardcode that value because it won’t always be true. Instead, use the %systemdrive% environment variable.) The reason that this tactic works … Read more

Command prompt won’t change directory to another drive

As @nasreddine answered or you can use /d For more help on the cd command use: Displays the name of or changes the current directory. CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..] .. Specifies that you want to change to the parent directory. Type CD drive: to display the current directory in the specified drive. Type CD … Read more

Difference between $? and $LastExitCode in PowerShell

$LastExitCode is the return code of native applications. $? just returns True or False depending on whether the last command (cmdlet or native) exited without error or not. For cmdlets failure usually means an exception, for native applications it’s a non-zero exit code: Cancelling a cmdlet with Ctrl+C will also count as failure; for native applications it depends on what exit code they set.

How to recursively download a folder via FTP on Linux

You could rely on wget which usually handles ftp get properly (at least in my own experience). For example: You can also use -m which is suitable for mirroring. It is currently equivalent to -r -N -l inf. If you’ve some special characters in the credential details, you can specify the –user and –password arguments … Read more

npm install multiple package names

It is definitely not installing multiple packages Why? You’re installing package1 and package2 and marking them as devDependencies with –save-dev. As stated in the documentation, you may combine multiple arguments, and even multiple types of arguments. In your case, you’re combining 2 package names published on the registry.

What is %0|%0 and how does it work?

This is the Windows version of a fork bomb. %0 is the name of the currently executing batch file. A batch file that contains just this line: Is going to recursively execute itself forever, quickly creating many processes and slowing the system down. This is not a bug in windows, it is just a very … Read more