|
I have a text file that contains a list of filenames, minus the extension, that I need to create. I want to run a quick batch file command or VBS script that will iterate through the list and then create a file based on the name.
The text file looks something...
Started by Chris Thompson on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you just trying to create empty text files? If so, this .vbs script will do it
Set fso.
|
|
Hello,
i want to open a file with VisualBasicScript (.vbs)
How could i do this?
The file is 'file.bat' and it's located in the same dir as the .vbs.
It should RUN it!
Started by YourComputerHelpZ on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
OutMsg = outMsg & " File Attributes: " if fileObj.attributes and 1 then outMsg = outMsg & "Read.
|
|
I need to count the number of #define lines in C files (3 of them) using VBS. Please suggest the best way to accomplish this.
Started by Maddy on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How about something like this? just pass the files in as arguments
Const token = "#define" Set objArgs = WScript.Arguments tokenCount = 0 Set fso = CreateObject("Scripting.FileSystemObject") For i = 0 To objArgs.Count - 1 Set objFile = fso.OpenTextFile... .
|
Ask your Facebook Friends
|
Hi,
Would I be able to read and write to a .VBS file using C#, please?
Thanks,
Eddie
Answer Snippets (Read the full thread at microsoft):
Use StreamReader/StreamWriter.
VBS is simply just a text file with VB script code inside it.
|
|
Hi all, I need some mind reading here, since I am trying to do what I do not completely understand.
There is a 32-bit application (electronic trading app called CQG) which provides COM API for external access. I have sample programs and scripts which ...
Started by alexandroid on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Similarly, try running under an unmanaged debugger and seeing if any other first chance exceptions are thrown... .
See if any odd errors are reported.
A couple of useful things you could try:
Run process monitor with the output filtered to the failing process .
|
|
My kids have never been able to do VBS before, and I grew up in a denomination that doesn't do that sort of thing, so I really have no experience whatsoever with what it's like. Last year, my oldest would have been old enough for it, but our church's ...
Started by MommyPenguin on
, 15 posts
by 14 people.
Answer Snippets (Read the full thread at etiquettehell):
(The only caveat is that a lot of VBS programs are now somewhat 'standardized....
This happened in the church I used to volunteer for VBS, some parents went to denominations way in the city is a member or will come should be a part of them.
|
|
So I am just posting this thread for my SEMFF bro’s and myself to have another place to do some planning and such for the upcoming VBS at my Church, Crosspointe Christian Church in Grosse Pointe Woods MI.
As many of you fellow foamy freaks probably know...
Started by Jimmy JFlyer on
, 15 posts
by 7 people.
Answer Snippets (Read the full thread at rcgroups):
Otherwise....
The planners for VBS know and it's myself who will arrange it all but they know to not tell the kids incase the kids know it's coming.
I am personally involved in VBS as well.
Time to go! Jimmy,
Sounds like a fun project.
|
|
I found this code that scans through all folders and sub folders and generates an xml file. Then got help turning that xml data into an excel file that can be saved as html. (Thank you mohanvijay )
To run this .VBS script I just double click from windows...
Started by mperrah on
, 20 posts
by 3 people.
Answer Snippets (Read the full thread at vbaexpress):
I tried buildxmlfromfolders() ' added to make ....
I'm just sure what i need to alter the .vbs file to work that way.
I dont mind running the script from within excel.
It the other way around, embed the VBS within VBA? that would be cool.
|
|
On Sun, 7 Jun 2009 06:48:44 -0400, "Larry" <larry328NOSPAM@att.net
First, I've created a string using a .vbs file, like this:
'make string out of clipboard contents
sText = oHtml.parentwindow.clipboardData.getData("text")
Then I've done stuff...
Started by Larry on
, 20 posts
by 6 people.
Answer Snippets (Read the full thread at omgili):
I already know how to put a string in the
Clipboard, and in fact, my first .vbs file begins with the desired is that by the time I get to that last....
A string from one script available to another script: Write it to
a temp file, then read.
|
|
Hi
I have a VBS script that runs a query in my Access DB. Now and again the query raises error to say DB or object is read only and I am sure this is because maybe someone is touching the sharepoint the table in the query is linked to - despite them knowing...
Started by grifter on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at access-programmers):
Using VBS
and using
Code: ....
HTH Are you actully using VBS Are you actully using VBS or are you using VBA? They are two different (although not much) languages.
VBA check the environment so the error does occure then run the query .
|