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!

Exe file run from Cd-rom fails in win98

Status
Not open for further replies.

jgn

Programmer
May 5, 2000
4
FR
Help!<br>I have made a VB program that I intend to use for installing some Access files on a user's hard drive. All it does is creating some directories, then copies files from the source directory (the one the exe is in) to them.<br><br>Now, the program works fine on both WinNT and Win98 when run from a hard drive.<br>When run from a CD-rom, it still works on NT, but on Windows 98, it just creates the directories, then fails to copy the files from CD to hard drive...<br><br>Any idea where this might come from?<br><br>Thanks for your help!
 
what code are you using for the copying(if its like a few lines)?<br><br>are you using the FileSystemObject object, or a shell() procedure, or etc? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Well, all it uses is the curdir() function detect the source directory, and then filecopy()...
 
It seems nothing wrong with your code. Try it on some other workstation with Windows 98.
 
I did. Same problem. And again, it works fine from hard drive to hard drive.
 
you wouldnt by any chance acidently be using a replacement, or move, check to see if its grabing from the right path, and also check to see if some of the commands may have a problem with Read-Only. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top