473,806 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Batch File & VBS commands

2 New Member
Hi, I am trying to understand Batch files for logging Text. I have a general understanding, but I am little lost on some of the command strings I keep seeing. I went out and Bought Microsoft Windows Scripting, and Command Line books. I am trying those command lines, and I am getting error messages. I guess you can’t run VBS command lines, and Batch files together. I am also having a problem trying to get script-o-matic ver2.0 to work. I hear in a couple of months Visual Studio 2005 is coming out. I guess I could get that. I tried another forum, and didn't get any response. I guess the world is getting to busy these days to get help anymore.
Sep 1 '05 #1
8 16665
Niheel
2,456 Recognized Expert Moderator Top Contributor
Sorry to hear that help is hard to find. Hope you find the help that you are looking for here. Try searching for old posts in here.
Sep 1 '05 #2
Sir_Scriptor
2 New Member
I appreciate your response and input Sir. You have made my night. I will get started on that right now. I have all these books, and I just don't see myself reading all these books in weeks. I have been trying to find a resolve to my problem for months, and playing around with command lines, and getting errors. Until I am blue in the face. LOL. Once again, Thanks for your response. :)
Sep 1 '05 #3
hackman
3 New Member
If we talking about batch files i will tell you something!!!!!

1.Open Notepad
2.Write hack.bat
3.Save as file as hack.bat
4.Open that and you see how batch files work!!!!!!!!!!
Apr 19 '08 #4
!NoItAll
297 Contributor
You can not mix VBS commands with batch commands. It would be like writing a line of C++ and a line of Visual Basic in the same program -once you call an interpreter/compiler it expects all the same syntax.
VBS is much more powerful than Batch files, albeit a little more complicated to write. Since you need some VBS you are stuck with ALL VBS. You can call DOS commands from VBS with the shell command, but that too is more complex then just writing something like "Dir>files. txt"
Apr 20 '08 #5
Killer42
8,435 Recognized Expert Expert
You can not mix VBS commands with batch commands. ...
Thanks for the input (you too, hackman). I'd just like to point out, in case you missed it, that this question was actually posted in 2005. So I wouldn't necessarily expect any feedback from the person who posted it.

(Though as far as I know your answer is still perfectly valid, and may be helpful to any others with the same type of question.)
Apr 21 '08 #6
RedSon
5,000 Recognized Expert Expert
Thanks Killer 42 I want to ask you for some questions!!
Had you open this file:


1.Go on desktop right click and go on new-shorcut
2.Write Shutdown -t -s 6000 -c
3.Open the file and you see how .exe files work!!!


HACKER FROM SERBIA
First off, creating a shortcut is not the same as an .exe. Second, telling someone to run a shutdown command on their computer does not demonstrate anything other then how to run shutdown commands. If anyone is curious you can run "shutdown /?" in a command window and see how the command works.
Apr 23 '08 #7
!NoItAll
297 Contributor
Ok - this thread is just silly now. And the "advise" about running the shutdown command can cost someone any unsaved work.
Remember folks - it's not just the posters who use the advice here - it's dozens of folks looking for similar help brought here by our friends a Google!

None of the advice in this thread is really worth the pixels they consume.
Apr 24 '08 #8
NeoPa
32,579 Recognized Expert Moderator MVP
Although the quote of this post still remains (no harm within context) I've taken your comment to heart about the original post and it's been removed.
Apr 24 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5068
by: Keith Wilby | last post by:
I have some code in my app that updates data by interrogating data from Artemis. It works fine, but I wondered if I'd be able to write a batch file which, at a predetermined time each day, would open the app 'silently' and run the code. I'm no whizz at batch files/DOS commands, but I've written them to open an Access app - it's the rest of it that I need advice about. How would I get the app to recognise that it was opened by the batch...
4
47547
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup) 4) Once the copy is complete, the batch file opens the Access database again 5) EXIT should close out the cmd window but it does not execute that line
4
2118
by: Jason Shohet | last post by:
A user runs a .NET application that authenticates them against active directory (they're coming in over VPN so they don't log on to the network normally). Once they log in, I want to take their user id, & run a batch file on their PC with that user id actually inside the batch file. (The objective here is to map a user to a drive on the network when they come in thru VPN -- and that can only be done with a batch file we have, customized...
2
1820
by: Sinex | last post by:
Hi, I am triggering a batch file from my C# code. There are no echo commands in the batch file...yet the console window/command prompt window pops up every time the batch file is triggerred. Is there a way to stop the window from appearing and just running all the batch commands in the backgroung? ....Sinex
6
9473
by: viki | last post by:
Hi, I want to run the batch file from the client side. I was able to do it in the server side by using process. But i want to run from the client side , like we do in asp using createobject("wscript.shell"). I tried the same code by using the html control and the client side code, but it gives me the error in createobject statement. Is there any way to run the batch files in the client, could some one help me with the code....
2
2816
by: DB | last post by:
Hi All, I have to execute dos command containing batch file using asp.net application. Code for batch file execution is working properly when I tried it with console application but same code is not working with ASP.net application. Help will be useful......... Thanks n Regards, Deepak
13
5444
by: MLH | last post by:
I have a batch file named GetConf.bat. It contains a line like this: ipconfig /all >c:\MyAppDir\IPdata.txt I believe I could run the line with something like ShellWait by Terry Kreft. Any reason I should run the procedure via a batch file call as opposed to launching the command string directly?
4
13393
by: ed | last post by:
Hi all, I'm very new to vb (2nd day) and I need to create a small app that will replace my old batch file with a flashy gui. I had some experience with access 2.0 which helps ;) What I would like is to get the output of the batch file to display on the gui as the batch file is running. if some of you understand unix... I want this: tail -f /var/log/messages
1
10175
by: GOPALA | last post by:
Hi , How To Execute A Psql Commands Through Batch File(.bat). My Aim Is , Usting Batch File , Connect The Database And Then Execute The Psql Statements.
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.