You are here

.bat files

6 posts / 0 new
Last post
mathechew
Offline
Last seen: 16 years 10 months ago
Joined: 2007-04-17 23:37
.bat files

Hello...

Almost the whole reason I started using portable apps was for when I was at school and needed to take notes (Evernote), Write scripts (Celtx), get my thoughts out (Freemind), etc....

Sadly, when I got to school and tried it, apparently we can't run .exe files from removable storage, OR from our Z drive (Network storage of 100MB on the school server).

Then, I tried running the .bat file that is in the freemind folder. It worked.

Now, I'm wondering how do I make .bat files that will run the programs for me? I tried:

@echo off

run \Portable Celtx\Portbable Celtx.exe

But that didn't work. I also realized that would just run the .exe file, which still wouldn't work...

Any ideas would be greatly appreciated!

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
You,

could always rename them to .com, it always used to work for me!

Yours

Steve Lamerton

My Blog

mathechew
Offline
Last seen: 16 years 10 months ago
Joined: 2007-04-17 23:37
Tried it... It didn't do

Tried it... It didn't do anything. Literally... The mouse spins like the computer's doing something, then nothing happens. The computer doesn't freeze or anything, it just ignores it i guess...

Thanks anyways!

roamer
roamer's picture
Offline
Last seen: 14 years 4 months ago
Joined: 2007-02-21 16:01
There has to

be a way to open exes on your school comp. Oh well. Try contacting the makers of your other programs and see if they want to take up the task of programming a launcher in .bat format. It probably has to run particular files to start the program, find those files, you can start the program. Try to find a program that can "take apart" exes and give you the source.

edit: see this page for more information.
https://portableapps.com/node/6754

btw: Hardly anyone program's .bat files because they are not supported much anymore (except in Operating System's launching). At school .bat files are used to annoy people that don't know about them, open them, and cause the computer to crash because of an overload of calculator, command prompt, solitaire, and notepad windows. (Haha. Makes me laugh thinking about it.)

Reality is merely an illusion, albeit a very persistent one.
-Albert Einstein

[Moderator RM: Fixed signature <em> tags]

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

roamer
roamer's picture
Offline
Last seen: 14 years 4 months ago
Joined: 2007-02-21 16:01
I don't

recomend programming .bat (or batch) files. sometimes, if you miss part of the code, running them can cause the programs you launch with them to keep opening and lock up your computer. (btw: if that happens try a [ctrl] + [pause|break] key combo)

If you really want to programs these try this site.
Computer Hope.com: Free Computer Help For Everyone

Edit: starting programs is under the secton "How to start Windows files and other programs from a batch file" I do recomend that your read and try all of the things on the page to learn more about them.
Have fun!

-Ummm...

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 7 months ago
Developer
Joined: 2005-12-10 15:22
Roamer,

it seems like there is an unclosed tag in your sig, could you change it please and can a moderator fix it please Smile

Yours

Steve Lamerton

My Blog

Log in or register to post comments