Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy files from CD-ROM to Hard Drive

Status
Not open for further replies.

esilva002

IS-IT--Management
May 5, 2010
15
US
Hello,
I have an access database and ico on a CD. I want to run a script on load (using autorun.inf - that's no big deal) to copy files from the CD to a folder on the C: drive. Once I copy the file I will make a short cut to the desktop to that file. Now the only problem I am having is that my current script copies files from D: drive, what if the user has multiple drives and decides to put their CD in Drive E: ??

Thanks a head of time!!
 
The autorun stuff should know from which drive it has been launched, doesn'it ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
idk. My autorun file opens a flash projector file from there the flash projector file links to a .bat file that would either copy and paste the the access file itself or link to another setup.vbs file that would do the same.
What are your thoughts?
 
the 'tilda'dp0 gives the current folder in a batch file
i would use a vbscript rather than the batch file, you can get the current folder using:
strCurrentFolder = UCase(Left(Wscript.ScriptFullName, Len(Wscript.ScriptFullName) - Len(Wscript.ScriptName) - 1))

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald
 
GREAT!!! It works perfectly!! You guys rock thanks for the support!
 
I have precisely the same need as elsiva002 except Ideally I'd like to automatically add the shorcut to the desk top. I've developed some training materials in .html format ...

" I have an access database and ico on a CD. I want to run a script on load (using autorun.inf - that's no big deal) to copy files from the CD to a folder on the C: drive. Once I copy the file I will make a short cut to the desktop to that file. Now the only problem I am having is that my current script copies files from D: drive, what if the user has multiple drives and decides to put their CD in Drive E: ??

Googling my problem leads to me to this forum - but frankly I don't understand the answers! I've been able to create a short autorun file, pointing to the desired file (index.html):

Can anyone help with a simple solution - I'm a [sail] trainer, not a programmer!
 
Your autorun should point to the script file which creates the shortcut, not the index.html.

The last thing the script file does is navigate to the index.html.

You should be able to google/tek-tips search for how to create a shorcut in VBScript. In addition, how to navigate to a web page using VBScript.

If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top