Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Obsolet

  1. Obsolet

    WScript.Run does not work

    Hi PHV, thank you! This helps a little, indeed. But it is of course limited in use for big values... I made this script: Dim fso, fsoFile, Path x = InputBox("How many files do you want to create?") y = InputBox("Please enter now the size for each file in Kbytes:") for i=1 to x step +1 Path...
  2. Obsolet

    WScript.Run does not work

    Something else which causes problems with my little scirpt. Generating a hug amount of files takes really long (talking about 250.000 and more!) Compared with this method: for i=1 to x step +1 Path = i & ".txt" set fso = CreateObject("Scripting.FileSystemObject") set fsoFile =...
  3. Obsolet

    WScript.Run does not work

    Hm, okay. But why not? I thought it has to be defined like that in every script (at least with WshShell.run). Without the first line the script won't work here. So what's wrong with that? Thanks! Obsolet
  4. Obsolet

    WScript.Run does not work

    Well, yes...I'd better do a research for an example ;-) Here BTW is the script I built. I needed a simple tool to create files with a specified size for migration testing. Set WshShell = CreateObject("Wscript.Shell") x = InputBox("How many Files do you want to be created?") y =...
  5. Obsolet

    WScript.Run does not work

    Thanks to all! This works fine now, even I remeber that I tried it that way also before. Well, maybe I misstyped a line or so. So it seems to me that Wscript.Run is not a script command? Just wondering because I found it very often in example scripts. So far I go ahead with your solution and...
  6. Obsolet

    WScript.Run does not work

    Hi! I am very new in scripting so please don't blame me for my question. I just want to script a very simple thing and when I did the web research I found many examples using Wscript.Run to run certain EXEs, like Notepad e.g. The way it should work: wscript.run("C:\windows\notepad.exe") Here...

Part and Inventory Search

Back
Top