Question about ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC

1 Answer

Auto-Delete in just one click

I need a code in vb6 to have a program that will auto-delete all the files in 1 drive in just one click of that program?? can u help me???

Posted by on

  • neoDim Mar 30, 2008

    i need a code in vb6 to have a program that will auto-delete all the
    files in 1 drive in just one click of that program?? can u help me???

×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Mentor:

    An expert who has written 3 tips or uploaded 2 video tips.

  • Contributor
  • 51 Answers

You need to use the FileSystemObject of the Scripting Runtime library. See here. This library is not part of the standard VB references by default so remember you will have to find it in the "References" list and check it so that it is added to your project; it is under "References" as "Microsoft Scripting Runtime Library". However bear in mind that calls to delete files from a VB app are high-level requests to the O/S, not direct kernel commands. If you have any kind of file lock contention you won't be able to delete a given file.

The best way to blast an entire drive would be use the DOS 'format' command. You cannot run 'format' though on the system drive, and it will take longer to format a drive than to erase all files, though formatting will really do it. You would use the Shell command in VB to execute the DOS command.

See here and here.

You can also use the Shell command to execute the "del" DOS command recursively against the drive. The FileSystemObject is basically doing that under the covers, so it's not too far away. Finally, you can use API code to do it, though I am guessing you are not quite there yet in your experience. But if so, take a look at these articles:

http://allapi.mentalis.org/vbtutor/iapi2.shtml
http://www.devarticles.com/c/a/Visual-Basic/Accessing-the-Windows-API-in-Visual-Basic/2/

Posted on Apr 01, 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

My pc became so slow


Some classic reasons a computer slows down. 1. It's possible that your computer may have so many background programs running that there is not enough main memory to run your main programs. All icons in your computer's system tray are background programs using memory.
To see and remove all running background programs:
a. Press the Ctrl + Alt + Delete keys at the same time.
b. Click any program or task except Explorer or Systray.
c. Then click End Task.
Repeat steps b and c to quit all programs except Explorer and Systray which are necessary components of Microsoft Windows.
You should now have a clean system, however you have just removed the programs from your computer's memory
, they will all return the next time you start Windows.
If you don't want certain background programs starting when you boot, use the Start/Search function to find the program and either configure it not to run at startup, remove it from Programs/Startup, or delete it from your system.
2. Your hard drive could be too full of data to function efficiently. There should be at least 300MB-500MBs of free space to allow for disk file chores. Note that this mostly applies to the C: drive or whatever drive your Window's cache is on.
If your C: drive is too full, delete unused programs on the C: drive to make space.
3. Your computer could have a fragmented hard drive. This results from programs being loaded and deleted. Run the Window's hard drive defragmenter (Defrag) once a month.
4. If you have 256 MB of memory or less, or you like to play games, you may not have enough system memory to run your software efficiently. You should probably upgrade to 512 MB or more of system memory.
5. You could have old or conflicting Windows device drivers. An example would be you might actually have two entirely different video drivers on your system and Windows could actually be alternately using both of them.
To prevent this problem, First boot the computer in Safe Mode by pressing and holding the F8 key during startup, after the DOS memory check has completed.
While in Safe Mode select Start/Settings/Control Panel/System/Devices. Click on all the devices and see if the various drivers have any yellow or red exclamation marks (which indicates a driver conflict) and also determine if there are any duplicate drivers that can be eliminated.
You may have to delete and reload a driver to correct these problems. Duplicate drivers can and should be deleted.
6. As each new Windows program is installed and uninstalled, it leaves behind parts of itself that can slow down or crash your computer. These are mostly .dlls and other shared files.
It's also very possible when uninstalling a program that needed Windows system files can be deleted. When your computer asks if you want to uninstall shared files it's usually safest to say no -- even if your uninstall program claims the files are not being used.
Old Windows drivers can be found by booting into Safe Mode, then opening Control Panel/System/Devices and ridding your system of old drivers.
Another option is to use various system cleaning software, like Norton Utilities, Windoctor etc.
Otherwise, the only real answer to this problem is to reload Windows into a new directory which eliminates all old junk and leftover files. This is something to do last, as you will also have to reload all your Windows settings, drivers, and programs.
7. Your computer could be full of adware, spyware, viruses, or trojans. These are all nasty programs that literally take over the functioning of your computer so they can run their programs. You definitely don't want any of this junk on your computer. To get rid of these parasite programs, and to prevent them from installing in the first place, you need and up-to-date firewall, anti-virus, and spyware removal programs.
These are three separate software programs that must be running at all times except for when you are not plugged into the Internet. It is very important that these programs continuously update themselves or they will become out-dated and will no longer be useful. These programs can be purchased together or from separate manufacturers

May 11, 2010 | Computers & Internet

1 Answer

How to setup visual basic 6.0


  1. One of the first and best things to do is begin to understand the Visual Basic IDE (Integrated Development Environment). By understanding the IDE you will be able to develop VB programs quickly and effectively. Start by reading the Getting to know the VB6 IDE tutorial
  2. The classic first program in any language is the Hello World tutorial. As a beginner you should make sure you write this program to get your feet wet. Check out the Simple Hello World VB6 tutorial
  3. Good programmers figure out how to use a consistent naming scheme when they develop applications. The quickest way to graduate out of the beginner VB6 level is to check out the Object Types and Naming Scheme VB tutorial
  4. Variables are used in any real development. Make sure you visit the Quick Variable tutorial to see how variables work in Visual Basic 6
  5. (Optional) More In Depth Understanding variables and types in VB6
  6. When you need to make comparisons or have your program choose between options you will need to understand Visual Basic's if statements. Luckily there's a beginners tutorial that explains just that: Understanding the if conditional statement
  7. Once you grasp the basics check out this next beginner VB6 tutorial that goes more in depth into conditional statements: Understanding if statements and conditionals in VB6
  8. Need to do something repeatedly? Need to iterate through a list of things? Need to count from 1 to 1 Billion by 3's? You need to understand loops! Understanding For, Do, and while Loops
  9. Once a beginner understands how to use functions and subroutines he or she is on the road to being a full fledged VB6 guru. A solid grasp on functions and subroutines allows you to reuse code and functionality throughout your program and in future programs.Functions and Subroutines in VB6 tutorial
  10. Last but not least, begin to learn how to use all the great controls Visual Basic offers and create a great User Interface for your clients to use. Basic Graphical User Interfaces in VB6 - Tutorial
Once you have finished these tutorials you should have a very good understanding of the fundamentals of the Visual Basic 6 language and development environment. Feel free to download some more advanced tutorials and continue learning on your own. If you have any questions or comments related to this Visual Basic 6 guide please post them below.

Jan 27, 2010 | Microsoft Visual Basic 6.0 for PC

1 Answer

Can not install Net Framewoek 3.0 because of


Sir,

Run the cleanup tool to clean out temporary files, run the .NET
Framework cleanup tool, Run the installation file, then reboot and try to install it again and see if it works. If not try the below following steps....

Step One:
1. Go to Add or Remove Programs, try to remove all .NET Framework.
2. Please download and install the Windows Installer Cleanup utility
from this link:
http://download.microsoft.com/downlo...BD/msicuu2.exe
3. Then, please run it from Start-> All Programs-> Windows Install
Clean Up.
4. Please remove all Microsoft .NET Framework shown there and click
Remove.
Step Two:
1. Click Start->Run, type INSTALLER and click OK.
2. In the open folder, click View menu and select Details.
3. Right-click the Date Modified column header.
4. Click Comments
5. In the Comments column, locate the cached Windows Installer file
that displays Microsoft .NET Framework 1.1 (English) RTL x86 enu.
6. Right-click the cached Windows Installer file and then click
Uninstall.
7. Close the window.
8. Delete the cached Windows Installer file.
Step Three:
1. Restart your computer.
2. While your computer is booting up, press F8 to invoke the startup
menu.
3. In the startup menu, choose Safe Mode.
4. Log on as an administrator.
Note: In Safe Mode, your system display and Desktop will look and
perform differently than in Normal Mode. This is only temporary.
5. Delete the folder C:\WINDOWS\Microsoft.NET
6. Delete the folder C:\WINDOWS\system32\URTTemp
7. In the C:\Windows\System32 folder, locate the file mscoree.dll.
Right click and rename it to mscoree.old
Step Four:
1. Click Start->Run, type REGEDIT and click OK.
2. Navigate to the following registry key by expanding the "+" beside
the registry tree in the left pane:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
3. Delete this key in the left pane.
4. Repeat steps 2-3 to delete the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup
5. Restart your computer to Normal Mode
Step Five:
1. Please download the Microsoft .NET Framework Version 1.1
Redistributable Package from the following link and save it to C:
http://www.microsoft.com/downloads/d...DisplayLang=en
2. Click Start->Run, type "c:\dotnetfx.exe /C" (without quotation marks
and there is a space in this command) in the open box and click OK.
3. Click Run, and type "C:\.NET Framework 1.1" (without quotation
marks) in the open box click OK
Note: If you are prompted to create this folder, please click Yes to
continue.
4. Locate the folder C:\.NET Framework 1.1 and double click the file
netfx.msi in it to install .NET Framework components.
If .NET Framework 1.1 can be successfully installed, we can go on to
install .NET Framework 1.1 Service Pack 1:
Microsoft .NET Framework 1.1 Service Pack 1
http://www.microsoft.com/downloads/d...DisplayLang=en
Step Six:
If the above two can be installed correctly, please download KB886903
from the following link and install again:
http://www.microsoft.com/downloads/d...displaylang=en
If the problem still exists, please describe the error message when
installing Microsoft .Net Framework Service Pack in further detail


Thanks
Good luck

Nov 07, 2009 | Microsoft Computers & Internet

1 Answer

Problems with VB6 Make .EXE command:


I guess your compiling logs are absent, or have been corrupted, which are only used to when you publish/make an executable.

To Confirm this, Make your EXE through Command Line Compiler, and How See this

If its still not working and your Project is important, then make a blank project and copy paste all Source and Objects there.

Regards,
Waqar.

Aug 18, 2009 | Microsoft Computers & Internet

1 Answer

I want to change Hdd volume id through VB6


If this is at all possible, you would have to make use of the Win32API via your VB6 application. I do not believe that capability is built into VB6.

Mar 20, 2009 | Microsoft Visual Basic Professional...

1 Answer

It is like a mini project for me.can i get the full coding... Answer This...


Hi,

You can find numerous source files/projects on following links:
  1. http://www.a1vbcode.com/
  2. http://www.planet-source-code.com/vb/default.asp?lngWId=1#categories
  3. http://www.freevbcode.com/
  4. http://www.vbcode.com/
  5. http://www.vbcodesource.com/
  6. http://www.vb6.us/http://www.vb6.us/

Just go through them. I'll suggest you to play around code, its very interesting RAD tool.

Hope this helps you.

Thanks.

Mar 15, 2009 | Microsoft Visual Basic 6.0 for PC

1 Answer

I want to open a jpg and doc file through command button in vb6


try to convert it to vb6 file and open it via vb6.... heres the link >>>> http://3d2f.com/tags/vb6/converter/registered/software/

Feb 28, 2009 | Microsoft Visual Basic 6.0 for PC

Not finding what you are looking for?
ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC Logo

270 people viewed this question

Ask a Question

Usually answered in minutes!

Top ArcMedia Computers & Internet Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4332 Answers

Florin

Level 3 Expert

733 Answers

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

Answer questions

Manuals & User Guides

Loading...