Welcome, Guest. Please login or register.

Author Topic: How do i make a command executable in Windows XP  (Read 3436 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1974
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
How do i make a command executable in Windows XP
« on: March 18, 2012, 08:34:35 PM »
Note: I've posted this in the "alternative operating systems" forum.  The question is Amiga related (read below).

I downloaded a little command line executable program that can run in windows and will play Amiga .anim files.

You have to run it from the Windows command line.

No problem, it runs fine.  But I constantly have to move the little executable player utility into each folder where the animation is so that I can do:

c: iffplayanim animationname.anim -loop

Of course if the executable (iffplayanim) is not in the folder, the command line interface cannot find it.

So....HOW can I make this little executable executable no matter what folder I am in?  I.e. I want to put it in one place where Windows CLI will always be able to find the utility, instead of having it only looking in the folder I am currently in.

From reading online, apparently I have to put it in some sort of PATH.  But there are no clear instructions on how to do this.

If this were an Amiga, I would simply drop the executable into the C/ folder of the Workbench partition.

I'm running Windows XP.

Thanks.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline spirantho

Re: How do i make a command executable in Windows XP
« Reply #1 on: March 18, 2012, 08:45:56 PM »
The quick and dirty way is to copy into your path somewhere - traditionally in C:\WINDOWS\SYSTEM32 or somesuch. However, I can't remember what Windows 7 uses (is that what you're using?)

The correct way is to add it to your path, as you say. I'm not on a Windows machine right now, but it's easy enough.

A quick google would show many webpages, but here's one for starters which looks about right:
http://www.mathworks.co.uk/support/solutions/en/data/1-15ZLK/index.html

Hope that helps!
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness!
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1974
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: How do i make a command executable in Windows XP
« Reply #2 on: March 18, 2012, 08:53:17 PM »
I have tried putting the .exe file in BOTH the C:\Windows\ and the C:\Windows\System32\ folder and I just get the message "iffanimplay is not recognized as and internal or external command, operable program or batch file".

Both these paths are specified in the Windows XP environment variables.

But when I drop iffanimplay.exe into the folder where I am currently viewing in command line, it works.

Strange...I can't figure out why it won't work.
« Last Edit: March 18, 2012, 09:03:26 PM by ral-clan »
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1974
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: How do i make a command executable in Windows XP
« Reply #3 on: March 18, 2012, 09:09:02 PM »
Figured it out....

it said %SystemRoot%\windows\ etc.

I had to add C:\Windows\.....etc. to the PATH.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: How do i make a command executable in Windows XP
« Reply #4 on: March 18, 2012, 09:15:23 PM »
If you had to add something to the PATH, I would have recommended you just put it somewhere like C:\Program Files\IFFAnim\blah.exe.  Also, executables without one of the expected extensions will not execute unless specifically directed to do so.
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: How do i make a command executable in Windows XP
« Reply #5 on: March 18, 2012, 09:25:59 PM »
What I do, generally, is to make one folder for all my utility programs and then add that to the path; that way I don't clutter things up with three dozen different directories all in the same environment variable. 'Course, there's times where that's not practical, but I do find it handy.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline Templario

Re: How do i make a command executable in Windows XP
« Reply #6 on: March 19, 2012, 10:16:13 AM »
Quote from: ral-clan;684324
Note: I've posted this in the "alternative operating systems" forum.  The question is Amiga related (read below).

I downloaded a little command line executable program that can run in windows and will play Amiga .anim files.

You have to run it from the Windows command line.

No problem, it runs fine.  But I constantly have to move the little executable player utility into each folder where the animation is so that I can do:

c: iffplayanim animationname.anim -loop

Of course if the executable (iffplayanim) is not in the folder, the command line interface cannot find it.

So....HOW can I make this little executable executable no matter what folder I am in?  I.e. I want to put it in one place where Windows CLI will always be able to find the utility, instead of having it only looking in the folder I am currently in.

From reading online, apparently I have to put it in some sort of PATH.  But there are no clear instructions on how to do this.

If this were an Amiga, I would simply drop the executable into the C/ folder of the Workbench partition.

I'm running Windows XP.

Thanks.
To see Amiga anim files under Windos, there is an easy solution, with Hollywood, Andreas as example has one AnimPlayer that you can compile for Windos and all systems, if you need an anim player you ask that someone compiled for you.
Amiga 500 with ROMs 1.3-2.05 and M-Tec AT 500 with hard disk and 4MB Ram.
WinUAE + Original OS 3.5&3.9
Sam440ep 800 MHZ + OS 4.1 F.E.
Sam460ex 1 GHz + OS 4.1 + Update 6. K.O.
MacMini 1.5 GHz + MorphOS 3.9
PowerBook G4 1.65 + MorphOS 3.9
 

Offline Trev

  • Zero
  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: How do i make a command executable in Windows XP
« Reply #7 on: March 19, 2012, 05:41:47 PM »
%SystemRoot%\system32 is normal. When stored in the registry properly as a REG_EXPAND_SZ value, environment variables in PATH are properly expanded. If adding C:\windows\system32 to PATH fixed the problem, PATH had most likely been updated by a legacy setup/installer not correctly designed for Windows NT. It was a common blunder around the turn of the century. Simply editing and saving PATH without making changes would also have resolved the problem.

Trev
 

Offline Louis Dias

Re: How do i make a command executable in Windows XP
« Reply #8 on: March 19, 2012, 07:21:29 PM »
Why not just put the executable where ever you want then right-click on your .anim file and select "Open With..." and browse to your executable and check the checkbox that says "Always use the selected program to open this kind of file" ?

This way just double-clicking any .anim file will run that player...
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1974
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: How do i make a command executable in Windows XP
« Reply #9 on: March 19, 2012, 07:51:53 PM »
Quote from: lou_dias;684417
Why not just put the executable where ever you want then right-click on your .anim file and select "Open With..." and browse to your executable and check the checkbox that says "Always use the selected program to open this kind of file" ?

This way just double-clicking any .anim file will run that player...


This is an executable that can only run from the command line and requires several parameters in the command line.  If there is some way of running that from the GUI it would be nice, too.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline Louis Dias

Re: How do i make a command executable in Windows XP
« Reply #10 on: March 19, 2012, 09:40:39 PM »
Quote from: ral-clan;684420
This is an executable that can only run from the command line and requires several parameters in the command line.  If there is some way of running that from the GUI it would be nice, too.

Is this something you wrote?
 

Offline Trev

  • Zero
  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1974
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: How do i make a command executable in Windows XP
« Reply #12 on: March 20, 2012, 03:39:46 PM »
Quote from: lou_dias;684437
Is this something you wrote?


No.  I found it on the web a few years ago:

http://www.amiga.org/forums/showthread.php?t=50985

But the original author's website (for the Windows port) seems to be offline now (I still have a copy of the executable).

It's an excellent little command line anim player for Windows that has played everything I've thrown at it, AND it can export the animation as bitmap frames for re-compilation as and AVI or other video file.

I think it's been ported to AROS, OS4.0 and MorphOS too:
http://ftp://ftp.club.cc.cmu.edu/pub/aminet/gfx/show/iffanimplay.readme

Anyway, I've got it all sorted now.  I can make anims using Alladin4d or DPaint in UAE and pop over to the Windows side of the computer in a second and still view them.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com