Windows ME running batch files

Help each other out

Windows ME running batch files

Postby sharp_1 on Mon Feb 13, 2006 5:59 pm

Using Windows ME. MS DOS window sticks open after executes command. Does anyone know if a way to get it to run behind XL instead of in front? Looks like my Windows XP turns the window off but not my ME server and the ME server is the one I want to use.
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby dgemily on Mon Feb 13, 2006 6:22 pm

do you use an event with the command "os:execute file" ?
if yes, you can try to put hidden in the case "Window Type" . I don't know if it will work with windows ME...
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby sharp_1 on Mon Feb 13, 2006 9:50 pm

thanks dgemily

The execute os file with "window type hidden" worked for the os stuff now I have one command that is a category execute where the window stays open. Any ideas??
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby dgemily on Tue Feb 14, 2006 3:11 pm

sharp_1 wrote:thanks dgemily

The execute os file with "window type hidden" worked for the os stuff now I have one command that is a category execute where the window stays open. Any ideas??

nope sorry....
anyway is you are using the command "category:execute" maybe you can use a command "os:execute file" instead of it....
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby sharp_1 on Tue Feb 14, 2006 3:38 pm

can't do that because the file being used is always different. I have a movie database item linked to separate batch files made for each movie. I have made a custom batch files for each movie so if I do a os execute I will only be able to execute the same file for that fuction each time not many different batch file like I need to.

Can a "hidden" option be created for the category module in xLobby???
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby Colby on Tue Feb 14, 2006 9:17 pm

you could edit your database, (pita), and give every entry an os:event under the advanced tab.
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby art on Tue Feb 14, 2006 11:46 pm

If I understand your setup, your "movies" database has links to a batch files in the "parameter" tag, if so, I wrote this little prog a long time ago - it executes batch files without this command prompt window - so you could assign an event to your category "os:execute file" - in the "File" point to my prog and in the Arguments enter %movies>parameter% (providing "movies" is the name of your category) that should lounch your batch file without this window....
Last edited by art on Mon Mar 13, 2006 9:43 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby sharp_1 on Thu Feb 16, 2006 12:47 am

I guess I must be dumb as a box of rocks...since I am so green can you take me thru the process. I am not sure where to put the %movies>parameter% argument?? Will I have to recreate all my batch files?? each of my batch files is unique.
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby art on Thu Feb 16, 2006 2:19 am

Now, let's not go that far :wink: maybe I just misunderstood your setup
OK, if your movies database looks like this:
Code: Select all
  <item>
  <parameter>c:\path\to\your\batchFile.bat</parameter>
  <coverart>someCoverPath</coverart>
  <display>blabla</display>
  <type>movie</type>
  <information>
   <name>blabla</name>
   <title>blabla</title>
   <sorttitle>blabla</sorttitle>
  </information>
  </item>


And your category is named "movies" you can create an event "os:execute file" and assign it to your category or however you start your batch files:

Image
Last edited by art on Mon Mar 13, 2006 9:44 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby sharp_1 on Thu Feb 16, 2006 3:19 am

art

Thanks for the help so far. I'm stuck.

My setup:
SKIN
movies
play movie
execute category
execute file (your runhidden exe)
close overlay

Everything works great when I test with the test button but then in the "real wold" environment the batch file doesn't close.
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby art on Thu Feb 16, 2006 3:53 am

OK, I think I see what you're doing...
remove this "execute file" from your event and try adding file type to your setup instead and let me know:
Image
Last edited by art on Mon Mar 13, 2006 9:44 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby sharp_1 on Thu Feb 16, 2006 4:07 am

Now its not letting the batch file run.
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby art on Thu Feb 16, 2006 4:09 am

which skin are you using?
Last edited by art on Mon Mar 13, 2006 9:47 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby sharp_1 on Thu Feb 16, 2006 4:14 am

simplicity
sharp_1
 
Posts: 630
Joined: Tue Jan 31, 2006 1:01 am
Location: Wisconsin

Postby art on Thu Feb 16, 2006 4:27 am

I just tested it on Steven's skin and everything works for me, not sure what could be wrong ...
You could try replacing
"execute category"
with
"execute file (runhidden exe) "
so you have only one of those commands in this event
Last edited by art on Mon Mar 13, 2006 9:47 pm, edited 2 times in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Next