Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One year of Phoenix Forums!
#17
To get straight to the point, I've never dealt with Basic and JavaScript, but I can think of a few thoughts.

Why JS and not VisuelBasic Script, today, WSH(Windows Scripting Host)? It's probably included automatically, or you can download it.
WSH is object-oriented, and it's a form of Basic. So why you playing away when temptation is right in front of you?

I don't know if I've already posted this, but this is a very simple WSH program (it's been a while since I've made web pages with VBS or WSH). My first web scripting language was VisualBasic Script, and I still think it was better than JS. Is it really better than WSH today?


The program creates a folder under Windows and deletes it after 5 seconds without asking. Here H\:

Code: (Select All)
'Variablendeklaration erzwingen
Option Explicit

Dim Pfad, OrdnerAnzeigen
Dim fso, fo

'Ordner Beispiel erstellen
Pfad = "H:\TEMP\Beispiel"

'FileSystemObject erzeugen fuer Zugriff
Set fso = WScript.CreateObject("Scripting.FileSystemObject")

'Ordner erstellen
Set fo = fso.CreateFolder(Pfad)

'Neu erstellten Ordner anzeigen
OrdnerAnzeigen = fso.GetParentFolderName(Pfad)
Set fo = fso.GetFolder(OrdnerAnzeigen)

'5 Sekunden warten
WScript.Sleep 5000

'Ordner ohne Nachfrage loeschen
fso.DeleteFolder(Pfad)
WScript.Quit

'***Ende
Reply


Messages In This Thread
One year of Phoenix Forums! - by mnrvovrfc - 04-21-2023, 03:42 PM
RE: One year of Phoenix Forums! - by SMcNeill - 04-21-2023, 05:10 PM
RE: One year of Phoenix Forums! - by Wiggums - 05-07-2023, 09:33 PM
RE: One year of Phoenix Forums! - by bplus - 04-21-2023, 05:16 PM
RE: One year of Phoenix Forums! - by SMcNeill - 04-21-2023, 06:09 PM
RE: One year of Phoenix Forums! - by bplus - 04-21-2023, 06:35 PM
RE: One year of Phoenix Forums! - by vince - 04-21-2023, 10:17 PM
RE: One year of Phoenix Forums! - by Sprezzo - 04-21-2023, 11:22 PM
RE: One year of Phoenix Forums! - by mnrvovrfc - 04-21-2023, 11:41 PM
RE: One year of Phoenix Forums! - by Sprezzo - 04-22-2023, 05:30 AM
RE: One year of Phoenix Forums! - by SMcNeill - 04-22-2023, 11:14 AM
RE: One year of Phoenix Forums! - by Ultraman - 04-24-2023, 01:14 PM
RE: One year of Phoenix Forums! - by SMcNeill - 04-24-2023, 02:27 PM
RE: One year of Phoenix Forums! - by mnrvovrfc - 04-24-2023, 03:11 PM
RE: One year of Phoenix Forums! - by vince - 04-22-2023, 02:30 PM
RE: One year of Phoenix Forums! - by NasaCow - 04-22-2023, 03:10 PM
RE: One year of Phoenix Forums! - by Sprezzo - 04-22-2023, 09:24 PM
RE: One year of Phoenix Forums! - by aurel - 04-23-2023, 05:37 AM
RE: One year of Phoenix Forums! - by Sprezzo - 04-23-2023, 06:09 AM
RE: One year of Phoenix Forums! - by aurel - 04-23-2023, 10:00 AM
RE: One year of Phoenix Forums! - by Kernelpanic - 04-23-2023, 10:58 PM
RE: One year of Phoenix Forums! - by mnrvovrfc - 04-23-2023, 11:16 PM
RE: One year of Phoenix Forums! - by bplus - 04-24-2023, 02:12 PM
RE: One year of Phoenix Forums! - by mnrvovrfc - 04-24-2023, 03:09 PM
RE: One year of Phoenix Forums! - by bobalooie - 04-25-2023, 12:27 AM
RE: One year of Phoenix Forums! - by aurel - 04-25-2023, 07:29 AM
RE: One year of Phoenix Forums! - by Ultraman - 04-25-2023, 04:26 PM
RE: One year of Phoenix Forums! - by mnrvovrfc - 04-29-2023, 10:44 PM
RE: One year of Phoenix Forums! - by DANILIN - 04-30-2023, 11:45 PM
RE: One year of Phoenix Forums! - by Kernelpanic - 05-01-2023, 01:22 AM



Users browsing this thread: 2 Guest(s)