Skip to main content

Featured post

How to Insert line break in Text component in React Native

Hi, I was developing an application in react native.I have to handle lots of text data in this small react native application.I have used  Text component in react native many times. While working on this application,i had a requirement to display some text content with line breaks.I will explain it clearly with an example.I want to display a text as shown below  Welcome Please subscribe my channel I wrote react native code as shown below <View> <Text> Welcome Please subscribe my channel </Text> <View> When i run these lines of code,It will display text as shown below Welcome Please subscribe my channel   - instead of displaying in two lines with line break,it displays in a single line.So i have to find a solution to insert line break in Text component in React Native.After lots of research,i found a clean solution as shown below <View> <Text> Welcome{"\n"} Please subscribe my channel </Text> <View> Here ...

How to move to another directory D,E,F etc from C drive in command prompt(CMD)

we are discussing two points in this blog 


  1. How to move to parent directory from particular folder in the system using cmd
  2. How to move to another directory from a directory in the system using cmd 


How to move to parent directory from particular folder in the system using cmd


When i was working in a node js project, i was trying to create a folder in D drive of my system.When i opened command prompt,I was in C drive of the system by default.I tried a lots of methods but i got different types of errors 


By default i was in C:\Users\Administrator>


So by executing cd.. two times i reached at C drive 


look at the image below.Now i am at C drive of my system




How to move to another directory from a directory in the system using cmd


Now i want to move to D drive in my system .I tried many commands but none of them worked as shown below


'D\' is not recognized as an internal or external command,

operable program or batch file.


The system cannot find the path specified.




So finally i got the correct command to move from a drive to another drive in my system.When i executed below command,i could easily move from C to D drive 


D:





So i could easily move from one driectory to another directory using this command