Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Tuesday, December 16, 2014

Let's Chocolatey

Chocolatey is a great way to install softwares on windows through the command line. It is for Windows what yum is for Linux. Installing softwares on Windows becomes easier using Chocolatey.

 Learn more about Chocolatey here.

Tuesday, April 1, 2014

Getting a directory listing on Windows and Mac

 It is easy to get a directory listing for a folder from a windows machine using command prompt window:


Get a directory listing from Windows machines:

cd C:\Foldername
dir /s/b/o:gn > C:\directory_list.txt




Similarly, you can get a directory listing via terminal on mac:

Get a directory listing from Mac machines for a folder:

find ~ /Users/username/Foldername/ > /Volumes/Macintosh\ HD/Users/username/Directory_Listing.txt

Saturday, June 1, 2013

net use command to assign a mapped drive letter for a webdav url

Following command to be used through command line for creating a persistent connection for a webdav url:

C:\>net use w: https://vijit.xyz.com/webdav /PERSISTENT:yes


To restore the current connections at each logon, regardless of future changes, /PERSISTENT:yes was used.



Saturday, August 18, 2012

Map drive letter for a Local folder

Please refer the following website for information on this:

 http://www.freelists.org/post/wintips/Subst-Create-Virtual-Drives

You can do this using the SUBST command which stands for substitute. It's easy.
Here's how you would create the example W: drive for the Windows folder:

Click Start>Run, enter this command:

subst V: E:\"Folder Vijit" (quotes to be used only if the folder name has space)

and click OK

Done!

By default, the virtual drive will only last until you reboot. To keep it, you
need to
have the command load at startup.
In Windows 9x, you can do this by placing thecommand in your autoexec file or
for all
Windows versions,  in any bat file which you
can  then place in your Startup folder which you can access by right clicking
the Start
button, choosing Open. You will find your
Startup folder in the Programs folder.

Here is how to create a simple bat file inside your Startup folder:
We'll use the letter W: assigned to C:\Windows, in this example.

Right click an empty area inside your Startup folder and click New>Text
Document.
Open up the newly created notepad document and enter these commands

@echo offsubst V: E:\"Folder Vijit"
cls

Save the txt file and then rename it with a .BAT extension.(click yes when
asked to
confirm the name change)

Done.  Now, the bat file will load each time you startup to make sure the
Virtual drive
remains.

Courtesy: http://www.freelists.org/post/wintips/Subst-Create-Virtual-Drives