Results 1 to 3 of 3

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Question regarding javascript in HTML widget

  1. #1
    Default Question regarding javascript in HTML widget
    I would like to know if Javascript can be used to move a file from one directory to another.

    That's all!

    If anyone knows a widget that does something like this, or has any suggestions on how I might accomplish this, that would also be great.

    Many thanks in advance!

  2. #2
    A quick google search will show you how to use the move command:

    <SCRIPT LANGUAGE=”JavaScript”>

    myActiveXObject=new ActiveXObject(“Scripting.FileSystemObject”);
    file = myActiveXObject.GetFile(“c\jw.txt”);
    file.Move(“d\”, true);

    </SCRIPT>
    Last edited by King_O_Hill; 12-31-2012 at 12:10 AM.

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  3. #3
    Quote Originally Posted by King_O_Hill View Post
    A quick google search will show you how to use the move command:

    <SCRIPT LANGUAGE=”JavaScript”>

    myActiveXObject=new ActiveXObject(“Scripting.FileSystemObject”);
    file = myActiveXObject.GetFile(“c\jw.txt”);
    file.Move(“d\”, true);

    </SCRIPT>
    Oh I searched for a bit, and I did come across that one

    That does do exactly what I want. However I believe that code requires "ActiveX", which is supported in browsers like Internet Explorer. I don't think that will work in my widget... but I may be wrong. Can anyone clarify that?

    Thanks for the quick response KotH

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •