MY-NOTES

Saturday, May 14, 2022

How to delete files and folders using Command Prompt in Windows 11/10

May 14, 2022 0
How to delete files and folders using Command Prompt in Windows 11/10

 At times, all our attempts to delete files or folders via File Explorer yield no results. Many reasons can be attributed to the failure, which can lock down the files/folders and prevent their deletion. In such cases, you can use the Command Prompt to delete files, folders, and subfolders.

Delete files & folders using Command Prompt


There are multiple ways via which you can delete a file or a folder on your Windows system. It is possible that you’ll run into problems if the file is locked. This is where the Command line prompt finds its real utility.

To delete files using Command Prompt, make sure to open it with admin privileges.

1] Delete the desired file

When the CMD window opens, navigate to the folder where the file is available. You will have to use the “cd” or change the directory command. Then, use the following command with options in the prompt:

DEL /F /A <file path with extension>

Here:

  • /F stands for force delete
  • /A selects only the files with ready for archiving attribute

2] Delete the desired folder

Navigate to the folder containing the folder you wish to delete by using the ‘cd’ command. Type the following command in the Command Prompt:

RD /S <folder path>

Here:

  • RD removes the folder from the directory.
  • /S Removes all subfolders and files

If you use the /Q parameter also, then you will not be asked for the Y/N confirmation.

If the folder or file is locked, you can follow these instructions to delete locked or undeletable files & folders.

Try this and let us know in the comments section below if the method works for you

Saturday, April 2, 2022

How to Run C# code in VS code?

April 02, 2022 0
 How to Run C# code in VS code?

 How to Run C# code in VS code?



Steps:

1: Install vs code Link

2: Got to https://dotnet.microsoft.com/

3: Click on Download or direct go to this Link

-> https://download.visualstudio.microsoft.com/download/pr/1eb43f77-61af-40b0-8a5a-6165724dca60/f12aac6d4a907b4d54f5d41317aae0f7/dotnet-sdk-6.0.201-win-x64.exe


4: Download it and Install it by just simple default steps.

5: Go to vscode and Install 3 Extensions

 i)   C# by Microsoft

 ii)  C# Snippets by Jorge Serrano

 iii) C# Extension by JosKreativ


6: To create Project: dotnet new console

$ dotnet new console

Welcome to .NET 6.0!

---------------------

SDK Version: 6.0.201

Telemetry

---------

The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------

Installed an ASP.NET Core HTTPS development certificate.

To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).

Learn about HTTPS: https://aka.ms/dotnet-https

----------------

Write your first app: https://aka.ms/dotnet-hello-world

Find out what's new: https://aka.ms/dotnet-whats-new

Explore documentation: https://aka.ms/dotnet-docs

Report issues and find source on GitHub: https://github.com/dotnet/core

Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli


7: To execute: dotnet restore

$ dotnet restore

  Determining projects to restore...

  All projects are up-to-date for restore.

8: To run: dotnet run

$ dotnet run

Hello, World!

What is your name:

Aryan

---------------------

My name is : Aryan   

How to setup Tailwind Css as a Post Css in HTML Project and Why to use?

April 02, 2022 0
How to setup Tailwind Css as a Post Css in HTML Project and Why to use?

 

Why use Tailwind CSS?

In this article, you will know about the advantages of using Tailwind CSS.  Let’s get started with the tutorial-

 


Advantages of using Tailwind CSS

1. Eliminate the Need of reinventing the class name

 By using Tailwind CSS, One can easily obliterate the requirement of reinventing the class name. In the case of writing Traditional CSS, one has to add a large number of class names while creating a single component. For example: While creating a section, a number of classes such as section-heading, section-para, etc are created.

2. No Risk of Breaking the existing template

While using Tailwind CSS, you can easily style the elements by applying pre-existing utility classes directly in your HTML. The biggest advantage of the Utility first approach is that all your components become independent. Thus, It eliminates the risk of providing the same class to two different components. For example: While creating a Header and Footer, A person can unintentionally provide the same class to both components and thus hampering the development.

3. Faster CSS Styling Process

Tailwind CSS is one of the fastest frameworks for styling HTML. As a result, one can effortlessly create stunning layouts by styling elements directly. 

You can try to create a landing page with the help of Traditional CSS and Tailwind CSS to experience the efficient process of using Tailwind CSS.

4. Responsiveness

In Tailwind CSS, a variety of breakpoints helps in constructing responsive designs. This simply means that you can easily change the CSS at a particular breakpoint. Thus, You can comfortably add the different classes for the different devices in the same element.

 

Setting Up Tailwind CSS for Production

You might know the procedure of setting up Tailwind CSS for development with the help of Play CDN. However, there is a slight difference in the process of setting Tailwind CSS for production. Let’s discuss it out-


To set up Tailwind CSS for production, you have to execute the below set of commands-



npm init -y


This command will initialize the directory as a NodeJS project.



npm install -D tailwindcss postcss autoprefixer vite


This command will install the required packages.



   npx tailwindcss init-p



The execution of this command will generate the configure file of Tailwind CSS.

 

  • Create an “Input.css” file:- After creating the file, add it to your HTML and edit it with the below piece of content-

@tailwind base;

@tailwind components;

@tailwind utilities; 

  • In the tailwind.config.js file, You have to replace “content: []” with “content: [“*”]”.
  • Moreover, You have to add “start”: “vite” to your scripts in package.json.
  • Finally, you have to run the npm run start command to start a dev server.

Tuesday, January 11, 2022

Add ssh key in gitlab

January 11, 2022 0
Add ssh key in gitlab

 Add ssh key in GitLab



ssh-keygen => create ssh key
cat <filepath> => to see the public key

Monday, December 20, 2021

How to active your laptops windows 10

December 20, 2021 0
How to active your laptops windows 10

How to active your laptops windows 10 

To active your windows we must follow the following steps:

  • Disable antivirus and windows defender
  • make a .cmd file or make an Activation.bat file 
  • paste the following code on it 
  • And finally, execute it and Done.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

@echo off
title Activate Windows 7 / 8 / 8.1 / 10 for FREE!&cls&echo =====================================&echo #Copyright: MSGuides.com&echo =====================================&echo.&echo #Supported products:&echo - Windows 7 Professional&echo - Windows 7 Professional N&echo - Windows 7 Professional E&echo - Windows 7 Enterprise&echo - Windows 7 Enterprise N&echo - Windows 7 Enterprise E&echo - Windows 8 Core&echo - Windows 8 Core Single Language&echo - Windows 8 Professional&echo - Windows 8 Professional N&echo - Windows 8 Professional WMC&echo - Windows 8 Enterprise&echo - Windows 8 Enterprise N&echo - Windows 8.1 Core&echo - Windows 8.1 Core N&echo - Windows 8.1 Core Single Language&echo - Windows 8.1 Professional&echo - Windows 8.1 Professional N&echo - Windows 8.1 Professional WMC&echo - Windows 8.1 Enterprise&echo - Windows 8.1 Enterprise N&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo - Windows 10 Professional N&echo - Windows 10 Education N&echo - Windows 10 Education N&echo - Windows 10 Enterprise&echo - Windows 10 Enterprise N&echo - Windows 10 Enterprise LTSB&echo - Windows 10 Enterprise LTSB N&echo.&echo.&echo ====================================&echo Activating your Windows... & cscript //nologo c:\windows\system32\slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk MRPKT-YTG23-K7D7T-X2JMM-QY7MG >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk W82YF-2Q76Y-63HXB-FGJG9-GF7QX >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk YDRBP-3D83W-TY26F-D46B2-XCKRJ >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk C29WB-22CC8-VJ326-GHFJW-H9DH4 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk BN3D2-R7TKB-3YPBD-8DRP2-27GG4 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2WN2H-YGCQR-KFX6K-CD6TF-84YXQ >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk NG4HW-VH26C-733KW-K6F98-J8CK4 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk XCVCF-2NXM9-723PB-MHCB7-2RYQQ >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk GNBB8-YVD74-QJHX6-27H4K-8QHDG >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 32JNW-9KQ84-P47T8-D8GGY-CWCK7 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk JMNMF-RHW7P-DMY6X-RF3DR-X2BQT >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7B9N3-D94CG-YTVHR-QBPX3-RJP64 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk BB6NG-PQ82V-VRDPW-8XVD2-V8P66 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk GCRJD-8NW9H-F2CDX-CCM8D-9D6T9 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk HMCNV-VVBFX-7HMBH-CTY9B-B4FXY >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 789NJ-TQK6T-6XTH8-J39CJ-J8D3P >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul&cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul
echo ------------------------------------&echo.&echo.&set i=1
:server
if %i%==1 set KMS_Sev=kms7.MSGuides.com
if %i%==2 set KMS_Sev=kms8.MSGuides.com
if %i%==3 set KMS_Sev=kms9.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo c:\windows\system32\slmgr.vbs /skms %KMS_Sev% >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ato | find /i "successfully" && (echo.& echo ====================================== & echo. & choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit) || (echo The connection to the server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto server)
explorer "http://MSGuides.com"&goto halt
:notsupported
echo ======================================&echo.&echo Sorry! Your version is not supported.
:halt
pause >nul

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++