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...
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 =...
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
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 =...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.