New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

file .bat for mac


Post Reply New Thread Subscribe

 
Thread Tools
sav2

 
Member Since: Oct 10, 2011
Posts: 3
sav2 is on a distinguished road

sav2 is offline
Hi, I need to convert a. Bat file to mac to start a portable application from usb stick.
This is the code to convert::
start \VLCPortable\VLCPortable.exe /VIDEO_TS\VIDEO_TS.IFO
The question is: how to convert the code and how should I call the file?
Obviously, then I'll replace the file VLCPortable.exe with a portable for Mac
Thanks
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,366
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
What you need is a shell script. However, note that a shell script will not run when you insert the usb stick, you have to run it manually.
Start here: LinuxCommand.org: Learn the Linux command line. Write shell scripts..
That should get you started.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
sav2

 
Member Since: Oct 10, 2011
Posts: 3
sav2 is on a distinguished road

sav2 is offline
Thanks for the answer, but I'm not so good in programming, can you help me translating:
start \VLCPortable\VLCPortable.exe /VIDEO_TS\VIDEO_TS.IFO
in a shell script
Thank you...
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,217
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Code:
./VLC.app/Contents/MacOS/VLC ./VIDEO_TS/VIDEO_TS.IFO
That should do the trick. Save it with the extension "sh" and you should be good to go.

That will work if the VLC app bundle is in the same directory as the shell script.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
sav2

 
Member Since: Oct 10, 2011
Posts: 3
sav2 is on a distinguished road

sav2 is offline
Thank you, you solved my problem
Thanks again
QUOTE Thanks

Post Reply New Thread Subscribe


« Suppressing Applescript errors? | cross-platform application »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
My MacBook Pro and creating an archive (zip) file Lsrichards Apple Notebooks 7 02-10-2011 05:49 AM
iMovie Problem...Please Help....Going Nuts Bruki Movies and Video 4 10-27-2007 09:27 AM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 08:13 PM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 11:34 PM

All times are GMT -4. The time now is 11:32 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?