de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Running external programs and/or batch files
PostPosted: Wed Jul 27, 2011 7:56 am 
Offline
Veteran
User avatar
I don't know what sort of control groovy (and thus SexScripts) has over external files and file systems (e.g. to rename or delete files) so this question may be irrelevant, but...

Can batch (.bat) files or .exe files be launched/run through a SexScript script? I used to use .bat files a lot in CyberMistress to "get around" some of the limitations, so was interested if the same can be done in SS.


Top
 Profile Send private message 
 
 Re: Running external programs and/or batch files
PostPosted: Wed Jul 27, 2011 9:26 am 
Offline
Site Admin
User avatar
Code:
Runtime.getRuntime().exec("cmd /c C:\\Users\\doti\\Documents\\COPY.bat");
or I suppose
Code:
Runtime.getRuntime().exec("cmd /c scripts\\COPY.bat");


But this is windows only, and may induce some faults/risks, so scripts doing this will not be shown as validated (but will be downloadable anyway).


Top
 Profile Send private message 
 
 Re: Running external programs and/or batch files
PostPosted: Wed Jul 27, 2011 2:45 pm 
Offline
Veteran
User avatar
Thanks!

Again, the problem with this is 'Windows only'. I don't know much about Linux (probably the next biggest userbase, I'd expect, for Sex Scripts) but do they not use 'bat files? Presuming not... I seem to remember being able to use java scripts (.js ?) instead of .bat files... would that be a better 'multi-platform compatible' way to do things? Or is it the whole 'Runtime' command but that is 'Windows only'?

While I don't know about listing them as 'non-validated' but I certainly agree that *any* script that runs external programs/proceedures need that clearly shown to potential downloaders (just 'cos I know MY scripts are safe doesn't mean I'd trust others' who used the same functions, hence I totally understand why some people might be wary a batch file might be run to wipe all the porn off their computers! :lol: )

EDIT: Can't seem to get this to work. I assume it's something I'm doing wrong (no 'black box' command window pops up when used, as normally happens when the batch file is executed outside of SexScripts)... unless this doesn't work on Windows 7 x64? Can anyone else please confirm this works on their machine, especially 64-bit and/or Windows 7?


Top
 Profile Send private message 
 
 Re: Running external programs and/or batch files
PostPosted: Thu Apr 25, 2013 11:54 am 
Offline
Site Admin
User avatar
I had not answered ; I had successes with the syntax above, I'll test it again.

Running .js file is not usually supported on Linux.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.