I am unable to move to the next drives in cmder. When i put the command to move to the other drive like
cd c:\
It again automatically moves to the Home Location.
I have searched on their official website but nothing helpful. I have find to set it up in settings but even can't find there
Here's a github question that may help.
Essentially, use Z: to navigate to a different drive, where Z is the drive you want to switch to.
This is available in the latest release.
If you are in C drive and want to cd into D drive then run this command
cd /d D:
if you want to cd into K drive
cd /d K:
you can use e: & cd /a/b/c
and use alias may save a lot of time for you
hope this will help you
https://github.com/cmderdev/cmder/issues/6#issuecomment-583273939
Let's say you want to go D drive
so just put d: on the terminal and press enter
now you are in :)
Related
I'm on c drive in command line
when I want to change the directory to D drive using :
cd /C D:\Riot Games
I get an error also with cmder
Assuming you're using Windows, and you're using the standard cmd.exe for your command line, you should be quoting your path arguments for safety even though the docs will tell you it isn't strictly necessary since the command doesn't treat spaces as delimiters. The correct syntax is simply:
cd "D:\Riot Games"
There is also no /C argument to the cd command. You may have meant to use:
cd /D "D:\Riot Games"
to change the current drive in addition to changing the current directory, but whether that's actually necessary isn't clear from your example.
On Windows CMD, you first need to switch to your other drive by just typing D:, then you can change directory by using the cd "Riot Games"
So I'm currently running out of space on my C: Drive which I store windows on currently and I wish to create a link between my C: Drive and my E: Drive so that I can store Custom Content files without taking up more space on my C: Drive.
For those who don't know how The Sims custom content files work; Files are stored within the documents folder through the Electronic Arts game folder. Now, this Electronic Arts folder is stored on the C: Drive. So why don't I simply move the Electronic Arts folder? Because unfortunately, for whatever reason, if there is no Electronic Arts folder present in it's designated spot on your C: Drive, it automatically creates a new folder upon starting the game(No other way to fix this). Hence why I have resulted to this method. It has worked for multiple others but not for myself.
>> cmd /c mklink /C C:\Users\Eun\Documents\Electronic Arts\The Sims 4\Mods E:\The Sims 4\Sims 4 Mods\Mods
Invalid switch - "C".
This is currently what I have entered into Windows PowerShell and I've been running it through Administrator. I've moved all my files into the new folder on my E: Drive already and have left my C: folder empty. I have also checked all spelling and capital letters as I know this stuff can be very sensitive.
So I'm assuming that my D: Folder is supposed to be my real_dir and my C: is my symlink_dir. Then again I could have misunderstood completely since I'm new to this and trying to read my way through it. If anyone is able to assist me with why the command is not working, I'll be very thankful.
I'm writing a batch file and have to navigate to a server first. However if it is only a drive I know I can just type in
C:\> D:
D:\>
or
C:\> cd blar
D:\blar\>
But now the target location is like: \\10.0.0.0
So how can I navigate to it without mapping it to drive D first?
You can refer to the resources in your server as
\\10.0.0.0\shareName\blar\doSomething.cmd
But if you want to "navigate" to the required point, you need to map to a drive letter.
And here, you have the option to explicitly use net use to create the mapping or you can do
pushd \\10.0.0.0\share\blar
doSomething.cmd
popd
that will assign a drive letter to the share and change the current directory to the indicated folder in the mapped drive. Popd will revert the operation, leaving you in the starting point
I just heard about the (almost impossible to google) z directory jumper for bash
Does anyone know of a powershell equivalent, or anything that even approaches the functionality?
For PowerShell there is Jump-Location and Z. You might also want to check out Go.
I had written cdposh and poshmarks which might be useful for you.
cdposh lets you specify environment variable cdpath and lets you switch directly to a directory on the cdpath (much like path for executables)
poshmarks lets you bookmark and quickly go to directories.
I will see if I can implement z for Powershell
Update: A very early implementation of z for Powershell - posz
The PowerShell Community Extensions has a nested module that will override your CD function and then provide you with a history list of dirs you've navigated to. To can move forwards and backwards through this list or jump to a particular entry e.g.:
6# cd
# Directory Stack:
--- ----------------
0 C:\Users\hillr
1 C:\Temp
2 C:\Windows
-> 3 C:\Windows\System32
7# cd -
C:\Windows
8# cd +
C:\Windows\System32
9# cd -1
C:\Temp
It's not quite as fancy as frequency based directory jumper but it is surprisingly handy.
Similar to this question:
Get all files from VSS for a given date?
I am trying to write a script that get a VSS project tree for a specified label. I have this:
:: Path to the SS.exe command
set ss="C:\Program Files\Microsoft Visual SourceSafe\ss"
:: Path to the srcsafe.ini file for the repository
set SSDIR=\\Glopsvrfile01\VSS_Data
:: Path to the project root in VSS
set VSSRoot="$/Customers/MyCustomer/MyProject"
set /p version="Please enter a SourceSafe label: "
mkdir temp
:: vvv Here is the command vvv
%ss% get %VSSRoot% -Vl%version% -GLtemp -R
del /s /q temp\*.*
rmdir temp
and I am definitely passing in a valid label (V1.0.29) but it just comes back with
Version not found
Having tried it with a version labeled TempLabel, that works! Is it just the dots?
Does anyone know how to list all the labeled versions of a project on the command line?
-- Alistair
After spending couple of hours, finally I able to find the small glitch in your provided script.
Simple replace Vl with VL in the line below. Remaining is perfect.
%ss% get %VSSRoot% -Vl%version% -GLtemp -R
Enjoy!
Asif