![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Equivalent command to 'stat' | im_new | Shell Programming and Scripting | 6 | 01-15-2009 10:04 AM |
| I want a command in solaris equivalent to glance in HP-UX | grrajeish | SUN Solaris | 6 | 06-26-2008 08:17 AM |
| equivalent of ptree command in zsh | dhams | Shell Programming and Scripting | 3 | 09-11-2007 07:07 PM |
| Command equivalent to DOS mode for SCO 5.0.6 | jgt | UNIX for Advanced & Expert Users | 3 | 05-11-2007 07:10 AM |
| SQL Spool equivalent command in DOS | stevefox | Windows & DOS: Issues & Discussions | 2 | 01-17-2006 09:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I know I'm rather late on this but it might help others...
You can use doskey to create an alias on any version of windows up to Windows XP (I'm not sure if it's available on Vista). Code:
C:> doskey alias_name=command Example: I often need to change drives and cd doesn't handle it very well but chdir does. However, the length of the command is tiresome to type every time I need it so I do this... Code:
doskey cdd=chdir /D %1 cdd F: The command prompt will change to F:> More information on DosKey can be found here: DOSKey - Wikipedia, the free encyclopedia |
|
||||
|
Carlos, if you are trying to just change teh drives, you can simply type drive letter as in below...
C:\Documents and Settings\ilango>f: F:\>e: E:\>h: H:\>c: C:\Documents and Settings\ilango> /ilan PS: ignore my comments if you are just you used this an example in your comment!! |
|
||||
|
Hello Milhan,
on top of what Pederabo has suggested.., the oter easy way to get working similar to aliases are using a set command.. C:\Documents and Settings\ilango\test>set dira=dir /A C:\Documents and Settings\ilango\test>dir Volume in drive C has no label. Volume Serial Number is 548F-C2AD Directory of C:\Documents and Settings\ilango\test 04/06/2009 12:13 PM <DIR> . 04/06/2009 12:13 PM <DIR> .. 04/06/2009 12:13 PM 4 normal.txt 1 File(s) 4 bytes 2 Dir(s) 6,269,435,904 bytes free C:\Documents and Settings\ilango\test>%dira% Volume in drive C has no label. Volume Serial Number is 548F-C2AD Directory of C:\Documents and Settings\ilango\test 04/06/2009 12:13 PM <DIR> . 04/06/2009 12:13 PM <DIR> .. 04/06/2009 12:13 PM 4 hidden.txt 04/06/2009 12:13 PM 4 normal.txt 2 File(s) 8 bytes 2 Dir(s) 6,269,403,136 bytes free C:\Documents and Settings\ilango\test> In teh above example, i made simiar to alias - dira to be executed as dir /A, only thing is you will have to use it with percentages.. as in %dira% /ilan |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|