2 Replies - 608 Views - Last Post: 15 February 2013 - 02:50 PM Rate Topic: -----

#1 emor  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 14-February 13

CD DVD check

Posted 14 February 2013 - 10:01 PM

i need to make my program to check for a specific file existance on CD Or DVD rom ?

here is my code
Option Explicit
 
'Set Dimension
DIM fso
 
'Set Object
Set fso = CreateObject("Scripting.FileSystemObject")
 
'Create Condition
If (fso.FileExists("CD,dvd:\CDcheck.exe")) Then
CreateObject("WScript.Shell").Run "program.exe"
Else
'Alert User
WScript.Echo("Please Insert program CD!")
End If



'Exit Script
WScript.Quit()

This post has been edited by BobRodes: 15 February 2013 - 02:48 PM
Reason for edit:: please use code tags in future


Is This A Good Question/Topic? 0
  • +

Replies To: CD DVD check

#2 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3223
  • View blog
  • Posts: 10,810
  • Joined: 12-December 12

Re: CD DVD check

Posted 15 February 2013 - 12:24 AM

Please wrap 'your' code in code-tags, it tells you how to do this directly in the area where you are typing your post. Use the Preview button to check it.

If this is homework then you need to make a start yourself and come back when you have a more specific question to ask.
Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is online

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 573
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: CD DVD check

Posted 15 February 2013 - 02:50 PM

Looks like a very nice piece of code...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1