+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
Scripts Thread, What scripting method would you recommend in Coding and Web Development; I am after making an app that presents an option menu that runs a batch file depending on which option ...
  1. #1

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 595 Times in 446 Posts
    Rep Power
    170

    What scripting method would you recommend

    I am after making an app that presents an option menu that runs a batch file depending on which option is selected. (just a simple net use mapping command).

    Would you guru's recommend any of these wonderfull scripting languages or will I have to program something in a "proper" language.

    regards

    Simon

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,995
    Thank Post
    123
    Thanked 286 Times in 263 Posts
    Rep Power
    108

    Re: What scripting method would you recommend

    With the newer versions of AuToIt you can have a user interface.

    http://www.autoitscript.com/autoit3/

    Look half way down the page.

    Not a hard language to grasp.

  3. #3
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: What scripting method would you recommend

    You can certainly develop a lovely user interface with AutoIT, but you need to get you head around how it works which, depending on where you are coming from, could take a while.

    The last time I needed to do this in a hurry, I used the JsForm.dll component which lets you create very simple forms from VB.

  4. #4
    daveyboy's Avatar
    Join Date
    Jun 2005
    Location
    Bath / Bristol
    Posts
    281
    Thank Post
    41
    Thanked 20 Times in 18 Posts
    Rep Power
    23

    Re: What scripting method would you recommend

    If you know a little VBscript and a small amount of HTML why not use HTA's ?

    Microsoft HTA Center

  5. #5

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: What scripting method would you recommend

    Yeah AutoIt is probably the way to go. If you understand BASIC and GUI concepts it shouldn't be that difficult.

    There's also the .net languages. I suspect most clients will still be running 1.1 of the framework in which case you can use Visual Studio 2003 or SharDevelop to do WYSIWYG RAD.

    I wonder if Borland are still offering Delphi fee for non commercial use. That's another visual design option.

    @AJBritton Jsforms.dll looks good but what did you do about DLL registraton?

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,982
    Thank Post
    3,531
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374

    Re: What scripting method would you recommend

    if your going to use vbscript for this why would you get vbscript to call the batch files ? why not just use vbscript all the way , im not sure what you are using the net use mappings for ( Im assuming for mapping a network drive or something of the like, in which case check this out )

    http://www.computerperformance.co.uk...tworkDrive.htm

    As for the gui either a HTA or why not just do it all on a html page and include the vbscript inside of the html page that way it will just be a web based GUI and you can use it anywhere without having to install it or anything

  7. #7

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: What scripting method would you recommend

    Quote Originally Posted by gecko
    if your going to use vbscript for this why would you get vbscript to call the batch files ? why not just use vbscript all the way , im not sure what you are using the net use mappings for ( Im assuming for mapping a network drive or something of the like, in which case check this out )

    http://www.computerperformance.co.uk...tworkDrive.htm
    I think the GUI part is the stumbling block.

    As for the gui either a HTA or why not just do it all on a html page and include the vbscript inside of the html page that way it will just be a web based GUI and you can use it anywhere without having to install it or anything
    Aren't there secuirty measures agains scripts interacting with the local system from a webpage?

  8. #8

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,982
    Thank Post
    3,531
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374

    Re: What scripting method would you recommend

    yeah you have to go to the advanced tab in internet options and change / tweak a few things but if your the creator of the script and you know what its for and doing then fair enough but you have a good point there though

    Digitally signed scripts ? *shrugs*

    I think thats hard though LOL, personally I've never done that so no clue on that digitally signed part

  9. #9
    limbo's Avatar
    Join Date
    Aug 2005
    Location
    Birmingham
    Posts
    460
    Thank Post
    2
    Thanked 41 Times in 36 Posts
    Rep Power
    25

    Re: What scripting method would you recommend

    Why not just do it in DOS all the way if that is what you are comfortable with? Try This Page for starters.

  10. #10

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: What scripting method would you recommend

    What about this, any good? A very basic AutoIt app that takes the list of batch files that can be run from a basic .ini file.
    Attached Files Attached Files

  11. #11
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: What scripting method would you recommend

    Quote Originally Posted by NetworkGeezer
    @AJBritton Jsforms.dll looks good but what did you do about DLL registraton?
    I assume you mean 'how to get it registered on lots of machines'. As it happens, I only needed that particular script to work on a server, so I didn't need to do it, but I regularly use some of Joe's other components (JsSys3) for scripting. I made an MSI for that, but you could do a simple startup script which checks to see if the file is on the PC, if not, copy it on and register it.

    Incidentally, Joe has lots of very useful 'classes' which can just be included in a script without the need for registration.

  12. #12

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    785
    Thank Post
    1
    Thanked 34 Times in 32 Posts
    Rep Power
    24

    Re: What scripting method would you recommend

    vbscript and HTA

  13. #13


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: What scripting method would you recommend

    I would recommend Python. Python is both a "wonderfull scripting language" AND a "proper language" It is true multiplatform and can be used for gui programming, web, scripting, executables.....
    one of pythons advantages is that it is easy to learn.

    http://www.python.org/

  14. #14

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: What scripting method would you recommend

    Quote Originally Posted by daveyboy
    If you know a little VBscript and a small amount of HTML why not use HTA's ?

    Microsoft HTA Center
    *nods*

    I wrote an HTA (my first) which sits at the corner of my screen and launches all sorts of stuff at the click of a button:

    log on history of user (full history or last event)
    log on history of machine (full history or last event)
    opens documents folder of user
    opens IE history of user
    displays information about user's profile size
    backs up and zaps user profile

    pings remote machine
    opens vnc session on remote machine
    displays MAC address of remote machine
    displays date remote machine was built
    logs current user off immediately
    reports timestamp of last startup

    fires up PSExec aimed at remote machine, also PSKill and PSList
    takes and saves a screen dump of the remote machine
    restarts remote machine
    kills/enables internet access on remote machine
    sends message to desktop of remote machine


    The concept started off as a bunch of batch files I summoned from the command line. Over time I've developed it and we stick stuff on it as and when we think it's a good idea. It's an invaluable tool for sitautions where a quick response is needed.

    I was amazed how easy it was to create something so useful

  15. #15

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 595 Times in 446 Posts
    Rep Power
    170

    Re: What scripting method would you recommend

    Thanks for all the replies - I'll need to have a look at them all later.

    Just for info - what I fully want to do is to display menu - select option - change mapping of P: drive depending on option - e.g. Class1 get P: drive set to \\server\shared\class1\pupils, Class2 get \\server\shared\class2\pupils etc.

    regards

    Simon



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. New to scripting
    By FN-GM in forum Scripts
    Replies: 26
    Last Post: 10th August 2007, 11:31 PM
  2. Best server 2003 backup method?
    By starscream in forum How do you do....it?
    Replies: 3
    Last Post: 27th June 2007, 03:26 PM
  3. Desktop Deployment Methods - What method do you employ?
    By ctbjs in forum Network and Classroom Management
    Replies: 30
    Last Post: 30th May 2007, 11:27 AM
  4. Environment variables or other method
    By HodgeHi in forum Scripts
    Replies: 3
    Last Post: 21st June 2006, 10:05 AM
  5. Best way / method to sync time between servers.
    By mac_shinobi in forum Wireless Networks
    Replies: 10
    Last Post: 27th September 2005, 02:40 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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