Active4 years, 11 months ago

Back in school, I used to have a .login file along the lines of

  1. Take your work with you with the new AutoCAD web app and the AutoCAD mobile app. Access your software anywhere via your Autodesk account. Share your drawings in the cloud.
  2. Hi, is there any way to create such 'files' from an Air Application? I think there's no API able to do this. But maybe is it possible using raw binary.

Read & Open DMG File in Windows. The DMG viewer software open & read Mac DMG file emails on all Windows Operating System. This tool supports to view DMG File of both Read-Only & Compressed Type. Popular mail files on Mac OS including EML, EMLX, Images can be Read using this DMG Viewer utility.

I'd like to do that sort of thing with my XP box here at work, but most of the resources I've found online seem fairly complicated and heavy-duty. Is there a way to do this that doesn't involve mucking about in the registry or running a large batch file?

My original reason for asking this was that I only need the command line for one command in one specific folder, and I wanted to be able to get to that folder quickly when I launched the command line. But the accepted answer for this question is so good that I decided to ask about my original issue as a separate question: Change to default start folder for Windows command prompt.

Community
PopsPops
4,83325 gold badges64 silver badges91 bronze badges

6 Answers

Not many people seem to know about it, but you can use the doskey built-in macro tool, the only issue is that it doesn't save. There are many ways to work around this though.

usage:

Adobe acrobat free download for mac. ls will now do a directory listing just like dir would.

If you want to use arguments with the commands, use this syntax:

As for the workaround to make them save:

  • save all aliases to a file in this format:

and place it in one of the directories in your path. Name it something short like a.cmd, so when you open cmd you can type a to load your aliases.

If typing an a and pressing Enter seems too much work, throw this into your AutoHotkey script:

Loading aliases automatically:

You can change all shortcuts to cmd to point to %SystemRoot%system32cmd.exe /K C:pathtoaliases.cmd, replacing C:pathtoaliases.cmd with the location of your aliases file. If you typically run it from the run box, you can:

  • Rename the cmd executable to cmd2.exe for example, and replace it with a script or another executable which launches the above command (I wouldn't really recommend this method as a lot of apps depend on cmd)
  • Make a batch script and call it cmda (cmd with aliases) for example. Have it launch the above command and put this batch script somewhere in your path.
grawity
263k41 gold badges549 silver badges619 bronze badges
John T
John T
146k22 gold badges304 silver badges335 bronze badges

It's a simple as:

  1. Create a file with aliases, e.g. c:binaliases:

  2. Create a file with all the stuff you want to run when cmd.exe is started, including loading the aliases with doskey e.g. c:bincmd_autoruns.cmd:

  3. Create and run once a batch file (e.g. set_cmd_autorun.cmd) which will set the Command Processor Autorun key to our cmd_autoruns.cmd:

As an alternative to set_cmd_autorun.cmd it is also possible to instead create a .reg file like the one below and then merge it with a double click:

BillP3rd
5,1451 gold badge25 silver badges37 bronze badges
user29888user29888

My answer is similar to vriolk's

I created a .bat file that contained my macros (e.g. c:winscriptsautoexec.bat):

and then from a cmd prompt ran 'cmd /?' to find the registry key to edit for the cmd autorun:

using regedit, add the path for your macro batch file to the AutoRun value (add the AutoRun key if it's not there):

now whenever you run 'cmd' from the Start->Run prompt, this autoexec.bat will also run and create the doskey macros for you.

By the way, whereis.cmd contains this:

which searches your PATH variable for the term you provide:

andemattandematt

You can create .cmd files and place them someplace in your %PATH% (such as C:Windows). To use your web alias as an example:

Would do something like:

I'm not aware of any way to make a flat .aliases style file.

djhowell

Kindle Reader For Windows

Windowsdjhowell
3,6911 gold badge16 silver badges20 bronze badges

a very quick and dirty way to have a ready shortcut, that doesn't require a lot of fuss - is to create a batch file named after the alias, in one of the directories that are a part of the PATH environment variable. For example, i wanted to invoke Notepad++ through an alias, so i created npp.bat in C:WINDOWS that contained the following:

now npp command can be used from any cmd shell, without autorun files and/or excursions to the registry

hello_earthhello_earth

The way I did it was with a quick python script:

Create Alias Mac

Apologies for the poor scripting, but the usage is quite nice, imo.Place it somewhere in your path, add .py to your PATHEXT, and add c:aliases to your PATH too (or change it, whatever suits), then use:

Mac Add Alias

to alias (Yep, no =, though it wouldn't be hard to add a .split in there), and:

To display what something is.

Hackish, but stupidly useful. There's an equivalent unalias script, but I'm sure you can work that one out.

Mac Alias Reader For Windows Shortcut

edit: This obviously requires python, written on v26 but will probably work in anything recent. As before, sorry for the quality :)

In the following table, you can find a list of programs that can open files with.ftmb extension.This list is created by collecting extension information reported by users through the 'send report' option of FileTypesMan utility. The product name, description, and company name are taken from the version information of the.exe file.The 'Actions' list is taken from the context menu items added. Acrobat reader for mac What is a FTMB file? Every day thousands of users submit information to us about which programs they use to open specific types of files. While we do not yet have a description of the FTMB file format and what it is normally used for, we do know which programs are known to open these files. See the list of programs recommended by our users below.

edit2: Actually, something like this but to add to the doskey stuff would be better. You can add startup commands to cmd with the autorun registry key, too, so that could be much cleaner.

John T

Fix Alias Mac

146k22 gold badges304 silver badges335 bronze badges

Free Adobe Reader For Windows 10

PhoshiPhoshi
21.4k2 gold badges53 silver badges77 bronze badges
Mac

Not the answer you're looking for? Browse other questions tagged windows-xpcommand-line or ask your own question.