topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:08 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Default alias for nircmd  (Read 11360 times)

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Default alias for nircmd
« on: August 06, 2009, 12:38 PM »
Is there a trick for getting the default alias for nircmd to work?  Sorry for the newbie questions, but I'm a newbie...

AWESOME utility, btw!!!  I've only been using it for an hour or two and other utilities are getting uninstalled one by one, as I discover how much better FARR can replace their functionality...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #1 on: August 06, 2009, 12:43 PM »
can you elaborate a little on what you are trying and what's not working.

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #2 on: August 06, 2009, 12:48 PM »
Sure.  (I'm on W7, btw, in case that has anything to do with it...)

If I open a command prompt, I have no trouble running nircmd from anywhere, so I'm sure it's in my PATH, but if I open FARR (I'm using Alt-Space) and type 'cmd ', all I get are file hits.  For example, the first hit is a file called 'vimcmds.txt' which is a cheat sheet I keep of Vim commands I want to remember.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #3 on: August 06, 2009, 12:51 PM »
sounds like you just need to install the nircmd alias pack:
https://www.donation...dex.php?topic=9365.0

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #4 on: August 06, 2009, 01:22 PM »
Ok- I assumed that, since the help file said it's a default alias, I didn't need to do anything else.  At any rate, I installed the alias pack, and tried the mute and unmute aliases, but they don't seem to do anything.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #5 on: August 06, 2009, 01:25 PM »
i guess first step is to see if ANY of the nircmd aliases work -- try screensaver start.
if not, then something else is wrong.

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #6 on: August 06, 2009, 02:09 PM »
Ok, got it:  Screensaver didn't work, either, so I looked at the alias and it has the %Aliasdir% hardcoded into the path, so it has to be there, too - it won't find it on the System Environment variable path...

That's a little unfortunate, because the version that comes in the pack is very old and crashes under W7.  But it works fine after copying the new version into the FARR/.../nircmd directory.

Thanks!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #7 on: August 06, 2009, 02:10 PM »
you could also manually edit the alias file, it's just a plaintext xml file -- and change the path to nircmd.

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #8 on: August 06, 2009, 02:36 PM »
That makes more sense, and avoids a proliferation of exe's - thanks!

dpupello

  • Participant
  • Joined in 2008
  • *
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #9 on: November 04, 2010, 09:40 AM »
Mouser, okay I'm a loser, but how would you add a custom alias to myaliases.alias for the following nircmd.exe command with arguments?

nircmd.exe cdrom open d:

I tried the following, but no go:

OpenCD | %ALIASDIR%nircmd.exe cdrom d:
or
OpenCD | %ALIASDIR%nircmd.exe $$1 $$2

(Installed the Nircmd alias pack already and that is working fine with the included aliases).

What is the format or correct command here?  Thanks for feedback.

By the way, I figured out how to do this in an alternate way (with a shortcut utilizing those arguments), but I'd prefer to know how to add my own aliases inside of FARR (with either hard-coded arguments, or "replacement" arguments).  Thanx!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #10 on: November 04, 2010, 09:50 AM »
nothing "loser" about it.  i suspect that your problem is that you are using %ALIASDIR% to locate the nircmd.exe but your myaliases.alias is not in same directory as the nircmd subdir

so i think instead of:
OpenCD | %ALIASDIR%nircmd.exe cdrom d:
you would use:
OpenCD | %APPDIR%\AliasGroups\Installed\nircmd\nircmd.exe cdrom d:
or would it be
OpenCD | %APPDIR%AliasGroups\Installed\nircmd\nircmd.exe cdrom d:


something like that

dpupello

  • Participant
  • Joined in 2008
  • *
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #11 on: November 04, 2010, 01:32 PM »
Mouser, thanks for the reply, and I get what you're telling me.

Interesting.  I couldn't get it to work using the %APPDIR% or %ALIASDIR% variables (even though it's apparently pointing directly at nircmd.exe), but once I pointed at where nircmd was in the path, %windir%\nircmd.exe, then it worked.  Perhaps nircmd has trouble fulfilling arguments unless it's positioned in the path, or FARR is not setting the nircmd "default folder", or something akin to that...  just shooting in the dark :)

Anyway, in the words of Inspector Clouseau, the problem is solv-ed.

Cheers.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Default alias for nircmd
« Reply #12 on: November 04, 2010, 05:30 PM »
also it might be FARRDIR instead of APPDIR.. i have been notoriously inconsistent with such things in some of my software (thankfully i have changed my ways since then but FARR still suffers from some of these inconsistencies).

anyway, glad you got it working!

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
Re: Default alias for nircmd
« Reply #13 on: July 11, 2012, 02:55 PM »
not finding the command might also be caused by spaces in the path %ALIASDIR%, it toook me a while to resolve this one :-[

so don't forget to put quotes around the command if any of the applicable path environment variables contains one or more spaces

replacing
OpenCD | %ALIASDIR%nircmd.exe cdrom d:
by
OpenCD | "%ALIASDIR%nircmd.exe" cdrom d:
worked for me

wiem