Using a shell script in Windows

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MikeC
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9
Joined: Tue Sep 18, 2012 2:12 pm

Using a shell script in Windows

Post by MikeC » Wed Jan 30, 2013 5:43 am

The following script to split a file into 50 MB chunks works fine in the Mac version.

do shell ("split -b50m" && theFile)

But not being familiar with Windows I'm having problems getting my head around how to do the same in the Windows version.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Using a shell script in Windows

Post by FourthWorld » Wed Jan 30, 2013 6:58 am

I don't believe DOS has a "split" command. I believe split is among the many Linux shell commands available for Windows with CygWin:
http://www.cygwin.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Using a shell script in Windows

Post by Simon » Wed Jan 30, 2013 8:15 am

Check out "read from file/until" in the dictionary.
50 MB is a lot to stuff into memory but I guess shell does the same.
Never tried reassembling a file using this.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply