amiga.org
     
iconAll times are GMT -6. The time now is 11:54 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » The "Not Quite Amiga but still computer related category" » Alternative Operating Systems » How do i make a command executable in Windows XP

Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others.

Reply
 
Thread Tools Display Modes
Old 03-18-2012, 02:34 PM   #1
ral-clan
Defender of the Faith
Points: 13,048, Level: 74 Points: 13,048, Level: 74 Points: 13,048, Level: 74
Activity: 33% Activity: 33% Activity: 33%
 
ral-clan's Avatar
 
Join Date: Feb 2006
Location: Ontario, Canada
Posts: 1,621
Default How do i make a command executable in Windows XP

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.
ral-clan is offline   Reply With Quote
Old 03-18-2012, 02:45 PM   #2
spirantho
Premium Member
Points: 10,848, Level: 68 Points: 10,848, Level: 68 Points: 10,848, Level: 68
Activity: 46% Activity: 46% Activity: 46%
 
Join Date: Aug 2002
Posts: 1,100
Default Re: How do i make a command executable in Windows XP

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/s...ZLK/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!
spirantho is offline   Reply With Quote
Old 03-18-2012, 02:53 PM   #3
ral-clan
Defender of the Faith
Points: 13,048, Level: 74 Points: 13,048, Level: 74 Points: 13,048, Level: 74
Activity: 33% Activity: 33% Activity: 33%
 
ral-clan's Avatar
 
Join Date: Feb 2006
Location: Ontario, Canada
Posts: 1,621
Default Re: How do i make a command executable in Windows XP

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 edited by ral-clan; 03-18-2012 at 03:03 PM..
ral-clan is offline   Reply With Quote
Old 03-18-2012, 03:09 PM   #4
ral-clan
Defender of the Faith
Points: 13,048, Level: 74 Points: 13,048, Level: 74 Points: 13,048, Level: 74
Activity: 33% Activity: 33% Activity: 33%
 
ral-clan's Avatar
 
Join Date: Feb 2006
Location: Ontario, Canada
Posts: 1,621
Default Re: How do i make a command executable in Windows XP

Figured it out....

it said %SystemRoot%\windows\ etc.

I had to add C:\Windows\.....etc. to the PATH.
ral-clan is offline   Reply With Quote
Old 03-18-2012, 03:15 PM   #5
LoadWB
Kindred of Babble-on
Points: 13,245, Level: 74 Points: 13,245, Level: 74 Points: 13,245, Level: 74
Activity: 5% Activity: 5% Activity: 5%
 
LoadWB's Avatar
 
Join Date: Jul 2006
Location: Tallahassee, FL
Posts: 2,099
Default Re: How do i make a command executable in Windows XP

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.
LoadWB is online now   Reply With Quote
Old 03-18-2012, 03:25 PM   #6
commodorejohn
Kindred of Babble-on
Points: 8,703, Level: 62 Points: 8,703, Level: 62 Points: 8,703, Level: 62
Activity: 66% Activity: 66% Activity: 66%
 
commodorejohn's Avatar
 
Join Date: Mar 2010
Location: Duluth, Minnesota
Posts: 2,547
Blog Entries: 8
Default Re: How do i make a command executable in Windows XP

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.
__________________
Amiga 1200 (KS3.1/ClassicWB3.1, 4GB HD, 34MB RAM, 68030 @ 50MHz)
DEC VAXStation 4000/60 (OpenVMS 7.3, 9GB HD, 104MB RAM, KA46 @ 55MHz)
DEC MicroPDP-11/73 (RT-11, 32MB HD, 4MB RAM, KDJ11 @ 15MHz)

"'Legacy code' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
commodorejohn is offline   Reply With Quote
Old 03-19-2012, 04:16 AM   #7
Templario
Cult Member
Points: 4,450, Level: 42 Points: 4,450, Level: 42 Points: 4,450, Level: 42
Activity: 2% Activity: 2% Activity: 2%
 
Templario's Avatar
 
Join Date: Sep 2010
Location: Palencia (capital of the mythical Vaccean Kingdom) - Spain
Posts: 641
Default Re: How do i make a command executable in Windows XP

Quote:
Originally Posted by ral-clan View Post
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 running on Intel Atom board.
Sam440ep 600 MHZ(altmost dead).
Sam440ep 733 MHZ.
Sam460ex 1 GHz + OS 4.1 + Update 6.
MacMini 1.5 GHz + MorphOS 3.1.
Templario is offline   Reply With Quote
Old 03-19-2012, 11:41 AM   #8
Trev
Slacker
Points: 11,230, Level: 69 Points: 11,230, Level: 69 Points: 11,230, Level: 69
Activity: 2% Activity: 2% Activity: 2%
 
Trev's Avatar
 
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
Default Re: How do i make a command executable in Windows XP

%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
__________________
Sam440ep-flex 733 MHz/1 GB RAM/Radeon 9250/AmigaOS4.1 Update 2
borked A1200/Blizzard1260+SCSI-IV/Z4+MediatorZIV/Deneb/Voodoo3/CatweaselMk3
more borked A1200/MBX1200z/Indivision
A500/clockport/RRNet
A600/A603
Power Mac G4 QuickSilver/MorphOS 2.6
Trev is offline   Reply With Quote
Old 03-19-2012, 01:21 PM   #9
lou_dias
Defender of the Faith
Points: 12,401, Level: 72 Points: 12,401, Level: 72 Points: 12,401, Level: 72
Activity: 2% Activity: 2% Activity: 2%
 
lou_dias's Avatar
 
Join Date: Mar 2002
Posts: 1,103
Send a message via AIM to lou_dias Send a message via Yahoo to lou_dias
Default Re: How do i make a command executable in Windows XP

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...
lou_dias is offline   Reply With Quote
Old 03-19-2012, 01:51 PM   #10
ral-clan
Defender of the Faith
Points: 13,048, Level: 74 Points: 13,048, Level: 74 Points: 13,048, Level: 74
Activity: 33% Activity: 33% Activity: 33%
 
ral-clan's Avatar
 
Join Date: Feb 2006
Location: Ontario, Canada
Posts: 1,621
Default Re: How do i make a command executable in Windows XP

Quote:
Originally Posted by lou_dias View Post
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.
ral-clan is offline   Reply With Quote
Old 03-19-2012, 03:40 PM   #11
lou_dias
Defender of the Faith
Points: 12,401, Level: 72 Points: 12,401, Level: 72 Points: 12,401, Level: 72
Activity: 2% Activity: 2% Activity: 2%
 
lou_dias's Avatar
 
Join Date: Mar 2002
Posts: 1,103
Send a message via AIM to lou_dias Send a message via Yahoo to lou_dias
Default Re: How do i make a command executable in Windows XP

Quote:
Originally Posted by ral-clan View Post
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?
lou_dias is offline   Reply With Quote
Old 03-19-2012, 11:56 PM   #12
Trev
Slacker
Points: 11,230, Level: 69 Points: 11,230, Level: 69 Points: 11,230, Level: 69
Activity: 2% Activity: 2% Activity: 2%
 
Trev's Avatar
 
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
Default Re: How do i make a command executable in Windows XP

See http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
__________________
Sam440ep-flex 733 MHz/1 GB RAM/Radeon 9250/AmigaOS4.1 Update 2
borked A1200/Blizzard1260+SCSI-IV/Z4+MediatorZIV/Deneb/Voodoo3/CatweaselMk3
more borked A1200/MBX1200z/Indivision
A500/clockport/RRNet
A600/A603
Power Mac G4 QuickSilver/MorphOS 2.6
Trev is offline   Reply With Quote
Old 03-20-2012, 09:39 AM   #13
ral-clan
Defender of the Faith
Points: 13,048, Level: 74 Points: 13,048, Level: 74 Points: 13,048, Level: 74
Activity: 33% Activity: 33% Activity: 33%
 
ral-clan's Avatar
 
Join Date: Feb 2006
Location: Ontario, Canada
Posts: 1,621
Default Re: How do i make a command executable in Windows XP

Quote:
Originally Posted by lou_dias View Post
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:
ftp://ftp.club.cc.cmu.edu/pub/aminet...nimplay.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.
ral-clan is offline   Reply With Quote
Reply

Bookmarks

Tags
command , executable , make , windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump