VS 2008 Create And Execute Bat File?
Nov 11, 2010assuming that I have form and a button, clicking the button,how can I create bat file and execute the command inside and then delete the bat file?
View 4 Repliesassuming that I have form and a button, clicking the button,how can I create bat file and execute the command inside and then delete the bat file?
View 4 RepliesMy question maybe not be very clear, but I just want to know how this process is called or references needed to create something similar, so I can investigate on my own ( but if you have code is welcome.Basically I have 2 desktop programs ( A and B). For A, I do not have the source code, for B I do.What I need is to create some service/program that after a screen pops up from program A, automatically runs B. IN other words, capture the moment a specific screen is shown in A and execute B.
My real life scenario is that I have a very basic POS where I can't collect customer demographics ( zip code, etc), so I created a second application to capture that but my cashiers are always forgetting to run the program and I need to find a way to run it after a screen is shown ( let's say the "Change Due" in the POS, so they don't forget to run it.
Im trying to make a simple execute button but i cant get it work and no ide to add codes in the ""
0
If "Loocks if hte exe fil is runing" = True Then
"kills the exe file"
Else
[Code]....
i am working Vb.NET 2008 Windows Appl. I was created some Forms which are having some controls. If i run the Appl in my sys its working fine. But if run .exe file into other system like Windows 7 with 125% text size, then the forms and Controls are expanding i want to scroll it out. Is it any solution for fit these Controls and Forms or comapre the screen size and resize the forms and controls automatically..
View 1 RepliesCurrently I'm creating a task that runs a hardware i/o loop for the duration of my program.i.e. it's a task that's created at the program's start and runs a loop that is only broken at the programs termination. Each loop cycle communicates via ethernet to hardware.depending on time outs each cycle takes 30-300 msec)I've noticed that if the loop runs with out any break that the program really slows down... to counter act that I placed a thread.sleep(x) in the loop
View 6 RepliesMy aim is to create a child processes which will execute in parallel the piece of VB.NET code say a function. I want to do it specifically using processes and not threads. Please suggest the ways to do this?
View 2 RepliesI'm fairly new to VB.NET and I'm looking to create a module that will contain all general SQL functionality like connect, disconnect and execute a sql query etc. I think I'm almost there but the code keeps bombing in one place. Can anyone see what is wrong with the following code?
[Code]...
I want my program to be able to create a '.txt' file when it is run for the first time, with the date and time the program was accessed, and to be able to add new 'logs' of program history every time it is accessed. What i mean is that i want my program to be able to create a '.txt' file, and then fill in the dates and times when the program is opened.
View 7 RepliesI need to write VB program to open and read text file, store each field (separated by comma) into an array. In the first array, it's an excel file and I need to execute it, and once opened in excel, there is a macro program inside and i need also to exceute using VB.
sample content of textfile:
C:principalsinventory.xls, MacroInventoryReport, 1, 3:00AM
----------
C:principalsinventory.xls, MacroNearExpiringReport, 1, 4:00AM
xecute a exe filwhich is stored as an isolatedstoragefile.In thebelow i stored file.exe from c: solatedfile.exe. i want to execute isolatedfile.exe like this.
Process.Start(isolatedfile.exe).How can i do it?Regards,Senthil.
Dim file_name As String = "c:file.exe"Dim isolated_file_name As String = "isolatedfile.exe"
[code].....
I have a sample.cmd file that has the following code.
dir/b/p D:Satheesh > TableOfContents.txt
When I run the bathc file seperately I can able to get a text file that contains all files in the folder.
But when I execute the cmd file from VB code using Shell function, I am not getting the text file created.
I created a *.bat file : osql -Usa -Paugust -SNgocThach -iMYDATABASE.SQL When it run at cmd, it ok. My database has just been setup. Now, I want to setup my database use VB.NET. How can i do
View 1 RepliesFor example I got Form1. And I want to get a jarfile inside it just like its possible for .swd and .pdf files.I thought of something like a webbrowser, going to a page with the jar file, but that Isnt really brilliant as the webbrowser might be slow, or cause problems.
View 1 Repliesi hve build 1 system inventory using vb.net 2008.can i run execute file from browser...maybe like in asp.net..
View 5 RepliesI have vs 2008. I have a VB project with lots of stuff. I want to do a little program to test out some ideas. I also, separately, want to execute a little .cmd script.
What I would like, is a way to execute my little test program, or the little .cmd script directly from within VS, bypassing the debug information set up for the project.
I want to deploy a VB6 application along with all the dependencies using VB.net installer (MSI). So can I execute VB6 Setup.exe (created using Package and Deployment Wizard) from the VB.NET installer (MSI).
View 2 RepliesI need to execute a .lnk file in vb.net (lnk file that points at an exe file).[code]...
View 1 Repliesi am just trying to invoke a service through console application file. for that
Process.Start((CurDir() +"" +
"installutil.exe" +
" " + CurDir() +
"" + ("money.exe"))).
Which gives error..?
where "installutil" and "Money" are vb.net exe files. "money" is a windows service file.
2, Or is anyother way to add these exe's as referrence and how to invoke ?
3, or is anyother method to invoke a windows service on single mouse click.?
Im right now working on a "notepad" type application, that i want to be able to save a code as a .vbs (I know how to save it as that), and then run/execute it. (the same as double click on it)[code]....
View 3 RepliesIn vb.net 2008 I want to execute a batch file that resides on another computer. There is no error, but nothing happens. Here is the code:
[Code]...
I am looking for a way to execute a file (executable) using GetManifestResourceStream. Either that or load it into a Stream or Byte. edit: I've noticed that sometimes you need certain names for this to work, so here is what I currently have:
[Code]...
Why I can not create this file?
How suppose to be the correct program?[code]...
I want to create a dxf file with vb2008. I calculated the coordinates with vb and i want to show the graphic in different cad programs. What do i have to do ? I thought about writing a parser, but i also ask myself if there do not t exist already any classes in vb to create a dxf file, but i haven`t found one.
View 1 RepliesI am developing an application for a client. They have requested some logging information.I am thinking about be able to log debug messages, information, and serious errors.Is there a way I could automatically switch the ones I want to log? For example, if I just wanted to write information to the log file, or write debug and information, or just serious errors.
What is the best practice when creating and writing to log files?
How would I create and open a new .txt file located perhaps on the desktop?Just a normal windows .txt file, Create a new one they can choose
View 11 RepliesI am working on moving hard-coded mappings from my VB.NET code to a database. One set of mappings I am working with right now has 385 entries. So let's say everytime I get "Friday" in my input I want to map it to "F", if I get "Monday" I want to map it to "M", etc. I can edit my code pretty quickly to end up with a file that looks like this:
"Friday"
"F"
"Monday"
[code].....
I want to execute a command on DOS prompt with getting the file name at run time. I tried the following command, it didnt work.[code]...
View 1 RepliesI have been added a file setup of SQLExpress into a new folder of vb project (solution explorer) but i don't know how to get that file to execute in runtime. how to Execute that file ?
View 3 Repliesam currently writing a program that uses multiple scripts we use to diagnose software we use in our environment. Currently, the only we retrieve our information is going to the local machine, and running the script locally, and retrieving the output results. The script is an batch file.The goal of the program I am currently creating is to automate the process by specifying which machines need to have the script ran on, generating the script, dispatching it, executing it, and retrieving the output results from the machine the program is ran on...
View 3 RepliesI am trying to execute a program with switches that ends up with a shortcut being too long and exceeds the 260 character limit for shortcuts in windows XP:
[Code]...