Question about Computers & Internet

2 Answers

Run dos command through vb 6.0 without showing it

Hi!!!!!
i want to run dos commands trough vb6.0 without showing command prompt to the user..how it can be possible...this is regarding my project....

Posted by on

  • gkhire Mar 20, 2008

    plzz give me d solution.....

×

2 Answers

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

Shell "Cmd.exe /c dir"
/c for hide command window
/k for display

Posted on Jun 21, 2010

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Genius:

    An expert who has answered 1,000 questions.

  • Master
  • 3,587 Answers

Visual basic, on windows, right? jumping to dos, implies a command line, no? how else would you access a command line interface, if not through cmd?

Posted on Mar 20, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How do i get my password


If you want to change a computer's sing-on password without actually knowing the original password, then today's your lucky day.

You don't need to be computer savvy to do this.
This is considering you know the ethics of privacy.

Please do not use this against anyone.
Okay, now that that's over with, here's how to change the sign-on password to a computer without knowing the original password...

Go to the start menu, then click on "run" (the command program).
Type in "cmd" (without the quotes).
Once the command window comes up type in: "net user"


After you type in "net user" it will list the user names of the computer.
You want to type in "net user" and the user name after it.

So if the username was Maya you would type in: net user maya.
After this it should say on the command window "you may change your password".

To change the password type in what you typed in the previous step but this time add the password to the end.
So if my password were abcd I would type in : net user maya abcd.
Change Administrator password using DOS Command
Use dos comand
The administrator account on a Windows machine is the main, root user name that gives full access to the machine.

Administrators should change this password frequently to avoid unauthorized access to the domain or desktop machine.

This can be done in the Windows Control Panel, or use the "net user" command in the Windows DOS prompt.

Log in to the machine using the administrator username and password.
You can also use an account that has administrator privileges on the domain or desktop computer.


Click the Windows "Start" button and select "Run" or "Start Search" (depending on your version of Windows).

In the text box displayed, enter "cmd" and press the "OK" button.
This opens the command prompt window.

Type "net user administrator <new password>" into the command prompt.
Replace "<new password>" with the password you want to set.

Enter the password again for confirmation.
Once you enter it again, the administrator password has been changed.

Test the new password by rebooting the machine and logging in with the new administrator password.

Apr 10, 2014 | Computers & Internet

Tip

Install .msi files for plain user account


Many corporate environments are locked down, all users do not have rights to install applications by themselves. This helps reduce virus infections and spreading. <br /><br />But as IT staff, we need to help these users install applications that will help them do their job. Many new applications are in .msi format which means you can not hold shift and right click on the .msi file to Runas Administrator or elevated privileges.<br /><br />This tip requires you to know some basic MS-DOS command line syntax. But first you need to start a command prompt with the elevated rights.<br /><br /> Step 1, Open command prompt Step 2, Type: Runas /user:administrator "cmd" (enter administrator password) Step 3, change directory to location of .msi install file (simple DOS commands) Step 4, Run .msi file via command line, this will start theinstall via local administrator account. Complete installation Step 5, close admin command prompt screen.

on Mar 08, 2011 | Computers & Internet

Tip

How to hide files using the Attrib command


Attrib is a DOS command that sets or displays various file attributes. One of those attributes is the Hidden attribute, which determines whether or not a file can be viewed in a directory under normal circumstances. With the Attrib command, you are able to hide or show any non-system file, as well as view any file's current attributes.

To use Attrib, you must be at the DOS command prompt. In Windows XP, Vista, and 7, you can open a command prompt window by either typing "cmd" into the Run bar or by browsing to the Command Prompt (Start menu > All Programs > Accessories > Command Prompt). In Vista or 7, you can also type "cmd" into the Search bar.

The syntax for using Attrib to hide a file is as follows:

attrib <path><filename> +h

If you are currently in the directory where the file is located, you can omit typing the path. And since DOS is not case sensitive, you can use either upper or lowercase letters, or both.

If you later want to make that same file visible again, just type:

attrib <path><filename> -h

To view the attributes of all of the files in the current directory (even hidden files), type "attrib" by itself. Keep in mind that hiding a file will make it harder to find, but it does not by any means make it impossible. If you have sensitive or confidential data that should not be viewed by other users, protect it using encryption, permissions, and a strong user account password.

on May 30, 2010 | Computers & Internet

1 Answer

My compaq presaario turns on and off without loading


Does it show a blue screen? If so you want to disable the automatic restart so you can read the error message.
To run the check disk utility you will need a repair disc ora operating system disc. Put the disc in the cd drive and boot fromit. You want to get to the Dos Command Prompt (Black screen with whiteletters) and type the following command: chkdsk /r
Check disk will run well over an hour or two and you will notice thepercentages going from high to low, this is normal. Let it run tocompletion. Then reboot machine.

If check disk fails to solve your problem you might have to reinstall windows.Try doing a Repair Install that way you don't loose your data, documents,music, pictures, videos or programs.

In windows xp you get to the dos command prompt by selecting R for repair whenthe options appear.

In Vista and Windows 7 you want to get to the recoveryconsole and look down at the bottom of the window for the Dos Command.

Apr 24, 2012 | Compaq Computers & Internet

1 Answer

Just installed Ubuntu Server. I need a graphical user interface, and downloaded one but computer still boots to dos-like interface. I don't know Linux commands. How to get GUI?


1-If you are presented with the command line after Linux boots, And after you login and end up at the command line prompt, you Type:
STARTX
The above command start up the GUI from the command line, and Get you in the Graphic GUI environment of Linux.
2-If you Linux computer start up with the GUI, and you are Taken to the desktop environment, there is a way to access the Linux command line.
From your desktop, you can go trough the startup menu and choose the " TERMINAL", and this will let you access the Command line. You will end you with a windows with the Command prompt from within the desktop.
In summary, accessing the command line interface or the GUI Can both be done on your Linux computer, weather your system is Setup to start with the Shell interface or the GUI.

Nov 28, 2011 | Canonical Ltd. Ubuntu

Tip

Creating user accounts from Dos(Command prompt) easy


why bother crating user accounts from dos

main reasons are
  • its very fast
  • you can create multiple user accounts in one click
  • you can use this to duplicate local user accounts in an work-group environment using batch files
  • its more fun than windows


you can use any windows version to the below steps

make sure you are logged in as an administrator
press winkey + R to open run menu
type in cmdpress enter

606fbf0.jpg
in command prompt type in the following
>net user hishan /addpress enter
this will add a user name hishan in to windows with out a password

364323a.jpg

to add user account with an password type
>net user hishan 123456 /add press enter
-123456 will user hishan password

if you want to type in the password unseen (secretly)
type
>net user hishan * /add
press enter
this will give you an special prompt to enter an passwordlike this
eca3423.jpg

to chek the user account is added

just type in
>net user
press enter

74a0e48.jpg

now how to create multiple user accounts at once(more fun)

really simple in dos you can create files called bat file witch automatically executes multiple dos command at once you just have to type in the commnd in the execution order
first open notepad and type the net user commend to add 3 users like this

8649032.jpg

and you can enter type in the password as well i have type in a command called pause at the end which will execute all the commands and stops at the end to show what happen if it was not there you will just see a black scree appearing and dispering quickly

save the above file as user.bat make sure you select save as type all files

539a780.jpg
i save my file in the desk topit should look like this
12b6934.jpg
hoooray now you can just double click on the file and see the user accounts create in an instant
cddfbde.jpg

you can create any amount of windows user accounts automatically with this systemhope you enjoyed it try it.........

note:if you are using windows vista right click on user.bat and select run as administrator since it requires administrative rights to create user accounts

on Apr 11, 2010 | Computers & Internet

1 Answer

For Dos Command


Download a program called Belarc Advisor. There isn't a command that will allow you get the system board number from the DOS prompt without running a 3rd party application.

Jul 11, 2009 | Computers & Internet

2 Answers

How can I run a dos app without using a command prompt console?


vbscript should be able to do that you can swap between wscript ( which uses the gui ) or cscript ( which uses the command prompt )

May 07, 2009 | Computers & Internet

2 Answers

To run a DOS command without showing output to the user


You cannot execute a dos window withou atleast having it appear in the task bar as a running program in Windows. You can however start it minimized using a batch file and starting with the command:

START /MINIMIZED /WAIT COMMAND.COM

Depending on what you are trying to do you might want to look into VB scripting or WHS as an alternative to using CMD to parse commands.

Dec 16, 2008 | Microsoft Visual Basic 6.0 for PC

2 Answers

Unable to load


How to get to a MS-DOS prompt.
Reason: If Windows or the computer is not operating properly, it may be necessary to get to a MS-DOS prompt to diagnose and to perform additional troubleshooting on the computer.
Solution: MS-DOS users
Windows 3.x users
Windows 95, 98 and ME users
Windows NT, 2000 and XP users
Windows Vista users
Other PC Operating System users

MS-DOS users If you are running MS-DOS with no other operating systems, the computer should be booting into a MS-DOS prompt automatically unless you have a shell or other program loading automatically. If the computer is not getting you to a MS-DOS prompt, reboot the computer and as the computer is booting, press the F5 key when you see the message "Starting MS-DOS" or the MS-DOS version. This will load the default standard MS-DOS. If you successfully get to a MS-DOS prompt and would like to prevent the computer from loading the program that is preventing you from getting to a MS-DOS prompt, or if you would like to fix possible error messages you may be receiving when booting the computer, edit the autoexec.bat and/or the config.sys files.

Windows 95, 98, and ME users If you are able to get into Windows 95, 98 or ME, you can get to a MS-DOS prompt by following the below steps.
  1. Click Start
  2. Click Run
  3. Type "command" and press enter.
This will open a MS-DOS shell. However, if you are attempting to troubleshoot an issue with the computer and are using Microsoft Windows 95 or Windows 98we suggest you restart the computer into MS-DOS. To do this follow the below steps.
  1. Click Start
  2. Click Shutdown
  3. Choose the option to restart the computer into a MS-DOS prompt.
If you are unable to get into Windows 95 or Windows 98 to get into a MS-DOS prompt, follow the below instructions (Windows ME does not have this option).
  1. Reboot the computer
  2. As the computer is booting, press the F8 key when you hear a beep or when you see "Starting Windows 95" or "Starting Windows 98". Windows 98 users sometimes may find it easier to press and hold the left CTRL key as the computer is booting.
  3. If done properly the user should get to a screen similar to the below screen.
Microsoft Windows 95 Startup Menu
============================= 1. Normal
2. Logged (\BOOTLOG.TXT)
3. Safe mode
4. Step-by-step confirmation
5. Command prompt only
6. Safe mode command prompt only
Enter a choice: 1
F5=Safe Mode Shift+F5=Command prompt Shift+F8= Step-by-step confirmation [N]

4. Select the option for Safe mode command prompt only.
Windows NT, 2000, XP, and Vista users If you're running Windows NT, 2000, or Windows XP and need to get to MS-DOS prompt follow the below steps.
  1. Click Start
  2. Click Run or click in the "Start Search" field if you're running Vista
  3. Type "cmd" or "command" and press enter.
Additional information about the difference between "cmd" and "command" can be found on document CH000395. If you're attempting to get into a MS-DOS prompt to troubleshoot the computer boot the computer into safe mode. Additional information about how to get into safe mode can be found on document CHSAFE. Windows 2000, XP, and Vista users who are unable to boot the computer into Normal Windows mode or Safe mode can also enter the recovery console to manage their computer from a prompt. Additional information about how to do this can be found on document CH000627. Finally, if you are experiencing issues getting into Windows NT, 2000, or XP, it may be necessary to run troubleshooting steps from a MS-DOS prompt. It is recommended that the Network Administrator get into the MS-DOS prompt by using either a standard MS-DOS boot diskette (note: will not be able to access data using a standard MS-DOS bootable diskette) or the ERD diskettes created after the installation of Windows NT, or boot from the Windows XP CD.

dot.gif
Index
question.gif dot.gif
Category:

MS-DOS Q&A

Companies:

Microsoft

Related Pages:
MS-DOS
Safe Mode

Resolved
question.gif
Were you able to locate the answer to your questions?
dot.gif dot.gif

Dec 06, 2007 | Microsoft Windows XP Home Edition

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

613 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...