Pen Command Prompt Using Vba Without Knowing The File Path?
Jan 22, 2009Is there a way to open Command Prompt using vb.net or vba without knowing the file path?. Is there a command like Open cmd.exe
View 3 RepliesIs there a way to open Command Prompt using vb.net or vba without knowing the file path?. Is there a command like Open cmd.exe
View 3 RepliesCommand prompt's path wasnt default. How can we change that path. In mine it writes "c:usersusername>".
View 8 RepliesI am a complete beginner and I was wondering where do I need to look to learn how to set a file path without knowing if the HDD is C:, D:, E:.. I'm using VB2010
View 5 Repliesis there a way in vb.net to open microsoft outlook without knowing the file path exactly? different versions of outlook use different file locations, then you have to worry about the program files and program files(x86). is there a way to just launch outlook using the system.diagnostics.process.start("..") without the file path?
i dont want to have to test folders:
If Folder_Exists("C:Program FilesMicrosoft OfficeOffice12") Then
If Folder_Exists("C:Program FilesMicrosoft OfficeOffice11") Then
I need to access a file path, but a part of the path is different on each PC. Mozilla creates a random profile name for each PC it is installed on. I can get most of the path through environment variables. I need to access the files inside of the default profile, but can't since I'm not sure how to access it.
Here's an example of the file path:
'C:Users\%USERPROFILE%AppDataRoamingMozillaFirefoxProfilesxxxxxxxx.default'
The only thing that stays the same with the profile name, is the '.default' part.
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 Repliesis there possible to encrypt a command batch (.bat) file so that user can't read the source code?
Or is it possible to embed it in VS 2008 so that user are invisible to the cmd file?
i need to read a xml file from the command prompt batch file.
View 4 RepliesIn the Windows Shell, there is a command that looks like this: copy /b fileA.zip + fileB.jpg fileC.jpg..Is there any equivalent function in VB.NET? I already know this works: [code] But I would much rather have a built-in function to work with. Here is what I am trying to do: url...Also, this doesn't just work for pictures. It works for any binary file. Is there any way in VB.NET to tell if a file is binary or text?
View 3 RepliesIs there a way to hide the characters of a "set /p password=Enter Password:" command? Or any new strand not using the SET command i could use instead?
View 2 RepliesI have application file and when clicked on it the application should be launched. I have used visualBasic.Command() to get the path where this file is present. In this path i get ("~") and because of this the .swf file is not getting loaded in the application. Is there any way to get the proper file path in which we don't see "~".
View 2 RepliesI'm using VB.NET in Visual Studio 2008 in a Vista 64-bit OS. I'm trying to find an easy way (there must be one) to quickly retrieve from the registry the application file name and path to use in a Shell command to open a particular file. Specifically, I want the user in my app to be able to click on a PDF file and have the app open that PDF file using the application associated with PDF file types - Acrobat Reader, for example. Anyone have any suggestions as to proper coding & syntax for the following sequence?:
(1) Get name of .exe file associated with .pdf file type (most likely from the HKey Root Classes hive)
(2) Get path for the .exe file
(3) Shell("[pathname]appname.exe filename.pdf")
I've spent a couple of hours looking through the forums and haven't found what I'm looking for.
I need to sort my code to work for Visual Basic 2008 Express Version, I am trying to open the Command Prompt through Visual Basic and make Visual Basic run through the Command Prompt. By this i mean i need Visual Basic to Send Messages from a text box on my design to the command prompt, e.g to make my program go through the command prompt to do the basic hide files in a picture.
[Code]...
I am not a developer but I like tweaking with system, I am recently trying to create an app that can reset admin password, but the problem is that I am not able to run the following command from standard account.
net user user_name * I know it is because of security reason but there must be some way so that software developer can tweak it, can someone guide me..[URl]..
The question is self-explanatory. It would be great if the code was one line long (something to do with "Process.Start("...")"?). I researched the web but only found old examples and such ones that do not work (at least for me). I want to use this in my class library, to run Git commands
View 1 RepliesBefore posting this question I have carried out a few searches on this forum but I am afraid I am struggling because I am very new to Visual Basic and although I do have some programming background, yesterday was day 1 and I took a web tutorial and watched a few video tutorials. (Long way to go!).
OK to the question and I know I should really not ask 2 but It's better to get them both in one post I think.
I want to build a small utility to run a form in full screen to basically hide an old application running in the background.
My old application is a database (Non VB code) which works very well but while it batch exports a lot of data the software displays some pretty ugly windows, I want to call my VB utility from a command prompt with 1 or more switches to display some meaningful text about where it is in the routine.
I also want to be able to send a switch at the end to close it completly.
Q1 - What is the best way to manage command prompt switches ?
Q2 - How do I make it close itself ?
Windows Command Prompt with VB
View 1 RepliesIn the Windows Shell, there is a command that looks like this:copy /b fileA.zip + fileB.jpg fileC.jpgIs there any equivalent function in VB.NET? I already know this works:Shell("cmd copy /b fileA.zip + fileB.jpg fileC.jpg")
View 5 RepliesI'm starting to make a program that will run some commands, so i need some code that will open command prompt and run the command "netstat -a".
View 11 RepliesI am looking for an easy way to have a command prompt like interface for my form. The idea is to make it an interactive text interface. Here is an example of what it might look like > Hi Hello! > How are you? I am fine! >_So it's very much like a chat. BTW, I am not referring to what the example is, just the concept of a command prompt, that I can create a scrollback buffer for. Very much like a MSDOS prompt.
View 5 RepliesI have this problem where is wont let me create and files through the command prompt via echo xxx> C:xxx in Visual Basic. If I do it sepoaratly and run the command prompt as admin (This is not using vb at all) then it will work. I have tried putting my vb app to require previlidges at both levels at different times, not at once, and I still got the same thing.So is there a way I can use the comman prompt through vb, but also making the command prompt being an admin without turning off UAC?The code that will not work is this.
Shell(Environ$("Comspec") & " /c """ & WDir & "ToolsMediaInfoMediaInfo.exe"" --output=xml """ & WDir & "ToolsMediaInfoMediaInfo.xml""")
This is my first VB program, but how do i make the command prompt stay ?
Option Strict Off
Option Explicit On
Module Module1
[code].....
I would like to capture the command prompt text and place it into a textbox.
Process.start("C:cmd.exe","arguments")
this starts the command prompt
But how does one capture the command prompt text and place it into a textbox.
From what I have learned just about anything is possible.
I'm working on some coding katas and managed to finish the algorithms and am now coding it?However, I can't seem to get Command Prompt to display the result.
Here's the code.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
[code]....
I wanted to make a vb.net version of this trick used to hide files in pictures: [URL]
In my mind I have to use an open file dialog box to do this.
I would like to create an interface for the command prompt so users here do not have to type in everything. I would probably use a FileOpen dialog to pass paths, etcfor me would be a link to (or small sample code), that does something like register a .dll.
..open the command prompt in the background and register a .dll using the following: "regsvr32 C:WINDOWSsystem32UTA_CTL.dll".
[code].....
I am working on a vb.net project and i have a "start" and "Pause" Buttons on the FormPost.exe
I am trying to schedule a batch process to run every day in the morning at 4:00 AM.
How can i run a command prompt to execuite FormPost.exe and them click on "start" button, all via command prompt?
I know of the Shell method to run files, but how can I execute normal command prompt commands like nslookup, and capture the output as a string?
View 1 RepliesAlright, so here's command I'm currently running. Upon executing, a command prompt apprears until the command is finished.
Is there any way to hide the command prompt?
Process.Start(
"\path_to_exeTesting.exe ",
Arg2 + Arg3 + Arg4 + Arg5 + Arg6 + Arg7 + Arg8 + Arg9 + Arg10 + Arg11)
I'm working on a small project that lets me read and write to and from command prompt, i have this code but one line does not work .Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click[code]...
View 6 Replies