doskey Questions
8
Solved
I often want to return to the previous directory I was just in in cmd.exe, but windows does not have the "cd -" functionality of Unix. Also typing cd ../../.. is a lot of typing.
Is there a faster...
Bighorn asked 10/1, 2018 at 14:47
1
Solved
Let's say I have the following in my AutoRun script:
@doskey cd = @( ^
for /f usebackq^^ delims^^=^^ eol^^= %%a in (^
'$* ' ^
) do @( ^
if "%%~a"==" " ( ^
if /i not "%...
Margaux asked 9/5, 2023 at 19:18
4
Solved
Following on from an answer to this question
For the Windows command prompt I can define aliases as follows:
@echo off
DOSKEY ns=npm start
DOSKEY nsr=npm run serve
I want to define an alias th...
Deputize asked 27/11, 2017 at 9:6
1
Solved
I have a caller.cmd file which has a DOSKEY set like this:
DOSKEY startnow=call powershell getscalled.ps1
Now the script getscalled.ps1 has two switch parameters defined in parameter sets like...
Cushion asked 1/6, 2020 at 7:22
2
Solved
I added a DOSKEY alias via batch script (script1.bat) and try to call it in another batch script. It doesn't work.
script1.bat:
set USER_SETTINGS=%DRIVE%\programme\settings.xml
DOSKEY mvn=mvn --...
Margrettmarguerie asked 14/4, 2016 at 7:14
1
Solved
Is this possible? I have tried this blog, but it doesn't work.
I have a macrofile with about 50 or so doskey macros, which is used in cmd.exe.
I run something like:
doskey /exename=powershell.exe...
Gelid asked 19/1, 2017 at 3:26
1
Solved
The doskey command separator ($T) generates a blank line when the command produces no output.
C:\> set "a="
C:\> set "b="
C:\> doskey test=set "a=foo" $T set "b=bar" $T echo ^%a^% ^%...
Ultrared asked 7/10, 2016 at 22:37
1
Solved
I'm creating a simple environment setup cmd script and I'm using doskey to setup various aliases and macros. The environment I'm on has various repositories and I wanted to create some macros for q...
Dispersoid asked 29/9, 2016 at 13:27
1
I'd just like to know if there is a way to call one doskey macro from another. I tried the following, but it doesn't work:
>doskey cleanpix=%PATH%\cleanpix.bat
>doskey cp=cleanpix
What am ...
1
Solved
I have created a doskey macro I want to remove.
How do I delete it?
How can I see all the macros I have created?
1
© 2022 - 2024 — McMap. All rights reserved.