Jump to content

Custom Scripting - User set variables


CloudCUBE

Recommended Posts

Can user set variables for scripting be added.

 

For example if i wanted to zip someones minecraft world folder i would create a custom script using 7zip my command would be as follows.

 

C:\modules\zip\7za.exe a "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\world_backup.zip" "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\world

 

The problem here is not everyone has their folder named 'world' as its defined in level-name=

 

would it be possible to have some sort of configuration editor to submit user set variables for example.

 

C:\modules\zip\7za.exe a "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\world_backup.zip" "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\%UserSet_Custom1%

 

This could be used for so many things such as defining your level-name or entering FTP details to have contents uploaded to an external server after zipping etc.

Edited by CloudCUBE
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 60 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use