473,323 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Run application from a Jump drive

489 256MB
I've had a request for a user wanting to know if my application can be installed on a jump drive do he can take the jump drive to different computers and run it. In my application I extract files out to the C: this wouldn't create a problem but not sure what other problems the jump drive might cause. How would I go about making sure that my application would be able to know the drive location of the jump drive seeing that it might be different on different computers. Has anybody out there tried this?
Thanks for any suggestions.
Feb 16 '09 #1
3 1880
DonRayner
489 Expert 256MB
Hi Tom,

The following code would give you the drive name in a string format that you are running your application from. If the app is going to be run from an UNC path then you would have to add some more code to check for that as well.

Expand|Select|Wrap|Line Numbers
  1. left(currentproject.Path,3)
If your DB path was "C:\Projects\MyProjects\xxx\DB1.mdb", you would get a string of "C:\" returned. But if the path was "\\myserver\projects....." all you would get back is "\\m".

Welcome to Bytes.
Feb 16 '09 #2
missinglinq
3,532 Expert 2GB
I troll thru this forum and four other Access forums/newsgroups, an average of 8-10 times a day, and the week never goes by without my seeing one or two threads dealing with chronic corruption when trying to run a database using removable storage devices. I have never seen any response that comes even close to explaining the cause of the problem. The only thing that comes to mind is, perhaps, the way data is accessed thru these devices. Access databases tend to become corrupt when connectivity to the back end is interrupted.

If I were doing this, I'd copy the data to the PC being used, run the app, then copy the data back to the removable drive, leaving a copy on the PC. This will give you a fall back position should something go awry.

Linq ;0)>
Feb 16 '09 #3
CD Tom
489 256MB
I'm able to run the program on the jump drive but I think if what your saying about the currupt database I might let this user know that it's not advisable to do it this way and the if the database gets currupt I'm not responsible. The program has a way to backup the data and restore it on different machines and that's the way most users move from one machine to another. Thanks for the advise.
Feb 16 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: | last post by:
My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone is familiar with that). If I configure the...
3
by: Andy Bates | last post by:
Hi - I have developed a .NET WinForms application and will be looking to write an installer shortly. I'm a bit concerned regarding security. If the application is installed to the local...
3
by: James N | last post by:
My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone is familiar with that). If I configure the...
5
by: JIM.H. | last post by:
Hello, I have installed visual studio .net in C: drive and want to have my application in D: drive, I could not open my application in D: driver, it says some .Net component might be missing, D is...
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
38
by: vinjvinj | last post by:
I haven't used an IDE in a long time but gave wing ide a try because I wanted the same development platform on Linux and Windows. I'm currently using Ultraedit and it works fine but needed...
4
by: robert d via AccessMonster.com | last post by:
When my app starts up, it creates a temporary database. This temp database is created from a 'model' database that is in the same folder as the application. Because there is a model, the creation...
3
by: PW | last post by:
Hi, I just bought a SanDisk Cruzer 4GB "U3" thumb drive. Is it possible to run an Access 2003 MDE off of one, complete with data? If so, what would I have to do to get it to work? Just...
1
by: davidmurray1 | last post by:
I have a C++ app on my flash drive that i am running, but often times, i must take the flash drive out of the computer and use it elsewhere while the executable continues to run. however, the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.