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:

Tip

How to disable auto complete in internet explorer 7


Sometimes many of you might have frustrated with the auto complete future as it gives complete website address when you type some part of the website if it was visited already.Even if you try to delete browsing history it will remain in most of the cases.


2fda14e.jpg


Here is the tips to Solve the issue Go to tools ->Internet Options


0a10c4d.jpg

Go to Content tab and Click on Settings Under auto-complete options


b192c2b.jpg


Un check Web address options (If you want to disable auto-complete for forms and user names and passwords, you can un check form and user names and passwords on forms)and Click OK


414f3ab.jpg


Go to General Tab and Click on Delete under browsing history


1ee35ae.jpg



Click on Delete all


66da104.jpg


Check also delete files and settings stored by add-ons only if you want to delete them and click YES

a580836.jpg


Then Click OK and again OK.Done! Type something in address bar and you can see auto-complete is disabled

on May 01, 2010 | Microsoft Internet Explorer 7

1 Answer

AutorunRemover Autorun Virus Remover license code


Hello,
Your note book is virus affected.
Try to system restore in earlier date. Follow the step

How will you confirm?
Follow the steep. Press win key +R >type gpedit .msc and soon an windows will open.
Press win key +R>ms config and soon an windows will open.
Press win key + R REGEDIT an windows will open soon.
Go to tools option >folder option >view>check on show hidden file

Check off hide protected operating system file
Check off hide extension known type file.
BUT still there are no hidden file in drive C:
Think your computer has affected by serious virus.




>start>program>accessories>system tools >system restore >set earlier date. If you have the strong virus you can not do that, then you should better to copy your data if necessary
follow step>set your hard disk in another computer .before install be ensure that .another pc is well condition.

>show hidden folder can see all system file >can open task manager>run type ms config >enter, it will be open windows>run type gpedit.msc> enter, it will be show.>run type regedit enter ,it will be open .think your another pc run in ok condition. Then type gpedit.msc and hit >administrative templates>system>turn off auto play>select enable>click down arrow >select all drives.



SET IT FROM BOOTH SIDE BECAUSE THERE ARE TWO SIDES >Go tools> 1 folder options>views>check on show hidden files and folders>2 check off hide extension >3 check off hide protected.

Now auto run program off. you can see and delete easily all the hidden unnecessary file .auto run file. Placed virus affected hard disk in this pc.explore drive select autorun/recycler/system volume information by dragging and delete it. Don't do the system drive for ensure r click on my computer >manage>disk management>identify system drive >and system drive letter>
Now You can copy your file and store in another drive which formatted emediate.And you can format drive one after one and transfer all the file to the formatted drive .Switch off the pc and put your pc again and install your os and set the pc same way Then type gpedit.msc and hit >administrative templates>system>turn off auto play>select enable>click down arrow >select all drives.
If you did not have the cd rom , you should create a bootable flash. follow the link.
http://articles.techrepublic.com.com/5100-22_11-5928902.html

If you want remove manually 1st click here or http://amiworks.co.in/talk/how-to-remove-new-folderexe-or-regsvrexr-or-autoruninf-virus/

If you want remove manually Autorun virus 2nd click hereOr http://www.wikihow.com/Remove-Autorun-Virus-from-Hard-Disk-Drives

You want to save your data download
http://www.hiren.info/bootcd-on-usb-disk

Write cd with the ISO and restart pc cd will start soon, click here or http://www.windowsreinstall.com/articles/bios/ for BIOS SETUP and go mini windows and deletesystem volume information and RECYCLERfrom all drive except "C"
drive. Because Heart Of Castle.If can not remove download bootable f cecure,click here or http://www.techmixer.com/free-f-secure-rescue-bootable-cd-to-clean-virus-and-malware/b>And write the ISO and boot from CD at the start time.SET THE BIOS SETUP for BOOT FROM CD
http://www.windowsreinstall.com/articles/bios/DONT USE KAV because it will delete your windows file
Now you will install and just delete C drive and create C drive same andinstall.
Installation guide click here.http://www.microsoft.com/windowsxp/using/setup/winxp/default.mspx


Hope this helps. Let me know if you need more informationThanks
shibuda

May 11, 2011 | Computers & Internet

2 Answers

My core speed drop always to 999,99 then 2000 then 1999 then 2500 and 2700mhz whats the problem ?? plzz help ??


some tips to increase your system performance

If you have an old and slow computer, do following to increase your system speed:

1- Disable Scan Disk
Click Start menu > Click run. In the run dialog box type: msconfig to open System Configuration Window. Then open "system configuration programs". In the General Tap click on Register and then check "Scandisk after error by shutdown disabled" to disable ScanDisk.

2- Disable auto start programs

Open System Configuration (msconfig) . click on the "Startup" tap and in the application list , Clear the check box for a startup item to disable it on your next boot.

3- Disable Windows Startup sound
Go to Start > Settings > Control Panel and then click on " Sounds and Multimedia" icon to open it. In the Sound tab disable Windows Startup sound.
4-disabe unused programs
Go to Start > Settings > Control Panel and click on "Add/Remove Programs" and uninstall old and useless programs.
5- Delete offline e-mails
Yes, offline e-mails especially e-mails with attachments can slow down your pc. Delete these e-mails.
6- delete temporary internet files
Temporary internet files can slow down your pc. In internet explorer click on tools menu and then select Internet Options and the click on " Delete Files and Delete Cookies" buttons to delete these files.
7- Defragment your Hard Drive
Defragment your hard drive every 10 days. To defragment your Hard Drive, click on Start menu > Programs > Accessories > System tools > Disk Defragmenter.
8- update your Windows
Turn on your Windows Automatic Update to have recent updates for your Windows.


do it in your system.Thankyou

Sep 04, 2009 | AMD Athlon 64 LE-1640 Processor...

2 Answers

No c drive left showing o% space left?


Don't do any mistakes just follow the instructions bellow
  • Delete Junk Files in Windows 10:
  • Search Disk Cleanup in the search box or you can find it under Start > All Apps > Windows Administrative Tools.
  • Click on Disk Cleanup to start the program. You will be asked which drive you want to clean up.
  • The default is C drive. Just make sure it is selected and click on OK.
The disk cleanup program will then start analyzing different folders and types of files that it thinks is safe to delete.
no-c-drive-left-showing-o-space-left-qxiko4mbhn3xwpbyjhiay14v-2-0.png When the analyzing is done, you will be presented with a window similar to the following - it lists what all is removable without causing problems to the operating system or installed applications.
no-c-drive-left-showing-o-space-left-qxiko4mbhn3xwpbyjhiay14v-2-2.png
  • Click on Delete Files to permanently delete all the selected items from your Computer.
no-c-drive-left-showing-o-space-left-qxiko4mbhn3xwpbyjhiay14v-2-5.png Which files you can delete safely?
1. Temporary Internet Files
2. Downloaded Program Files
3. Offline Webpages
4. Recycle Bin
5. Temporary files
6. Thumbnails
7. Old Windows folder.

Mar 18, 2009 | E-Machines eMachines Desktop PC

1 Answer

Problem openinig c and D drives


Try This
1.) Go to folder option = select show hidden files = delete any file saying auto.inf extension.
2.) Try running a antivirus scan on the macine & delete the infected files.
3.) Format the machine backing up your data.

Mar 18, 2009 | Computers & Internet

2 Answers

Delete blank rows in excel using visual basic


have you tried to read in one file and write back in excel format only the non-blank rows?

Mar 11, 2009 | Sony Playstation 3 (PS3) Console

2 Answers

Tracking cookies.


For Internet Explorer 5 and above, you can follow these directions to clear out temporary files and delete cookies.
1) Open Internet Explorer and click on Tools
2) Click on Internet Options
3) On the General Tab, in the middle of the screen, click on Delete Files
4) You may also want to check the box "Delete all offline content"
5) Click on OK and wait for the hourglass icon to stop after it deletes the temporary internet files
6) You can now click on Delete Cookies and click OK to delete cookies that websites have placed on your hard drive.

To clear the Internet History in IE:
1) Open Internet Explorer and click on Tools
2) Click on Internet Options
3) On the General Tab, in the middle of the screen, click on Clear History
4) Click OK

To clean up other temporary files on your computer in Windows 98 or higher:
1) Click Start, Programs (or All Programs), Accessories, System Tools, Disk Cleanup
2) Choose the correct drive usually C:\
3) Check the boxes in the list and delete the files

Mar 31, 2008 | Computers & Internet

3 Answers

Internet


For Internet Explorer 5 and above, you can follow these directions to clear out temporary files and delete cookies.
1) Open Internet Explorer and click on Tools
2) Click on Internet Options
3) On the General Tab, in the middle of the screen, click on Delete Files
4) You may also want to check the box "Delete all offline content"
5) Click on OK and wait for the hourglass icon to stop after it deletes the temporary internet files
6) You can now click on Delete Cookies and click OK to delete cookies that websites have placed on your hard drive.
To clear the Internet History in IE:
1) Open Internet Explorer and click on Tools
2) Click on Internet Options
3) On the General Tab, in the middle of the screen, click on Clear History
4) Click OK
To clean up other temporary files on your computer in Windows 98 or higher:
1) Click Start, Programs (or All Programs), Accessories, System Tools, Disk Cleanup
2) Choose the correct drive usually C:\
3) Check the boxes in the list and delete the files

Nov 13, 2007 | Toshiba Satellite A135-S2386 Notebook

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

271 people viewed this question

Ask a Question

Usually answered in minutes!

Top ArcMedia Computers & Internet Experts

Computer Links

Level 3 Expert

2385 Answers

Robin Hill
Robin Hill

Level 3 Expert

1262 Answers

Mike

Level 3 Expert

4334 Answers

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

Answer questions

Manuals & User Guides

Loading...