Jump to content

Re-route data sent to drive a:\ to drive c:\


Affe
 Share

Recommended Posts

I am trying to intercept data that is being written to drive a:\ and instead write it to a folder on drive c:\.

I've tried mapping the drive, everything... Can't figure out how to do this.

The reason I am doing this is there is a program that was written by the dinosaurs being used at my company. All exports (data to be sent) and imports (including updates, sometimes larger than a floppy disk) are done through the a:\ drive, and this is hard-coded and cannot be changed.

I want to trick the program into thinking that everything is coming from the a:\ drive, when instead it is coming from a folder on the c:\ drive.

I was trying to use AutoIt, and thought I had it, but it appears everything I was doing did nothing at all.

Does anyone have a clue on this???

[center][/center]

Link to comment
Share on other sites

I am trying to intercept data that is being written to drive a:\ and instead write it to a folder on drive c:\.

I've tried mapping the drive, everything... Can't figure out how to do this.

The reason I am doing this is there is a program that was written by the dinosaurs being used at my company. All exports (data to be sent) and imports (including updates, sometimes larger than a floppy disk) are done through the a:\ drive, and this is hard-coded and cannot be changed.

I want to trick the program into thinking that everything is coming from the a:\ drive, when instead it is coming from a folder on the c:\ drive.

I was trying to use AutoIt, and thought I had it, but it appears everything I was doing did nothing at all.

Does anyone have a clue on this???

You could use the DOS command SUBST to emulate the drive letter "A:" while pointing to a specific folder on another drive. The only catch is, I don't know if you can pull this off on a box with an existing "A:" drive (mine is blissfully floppyless).

Example usage (from the command line):

subst a: C:\test

Where a: is the drive I want it to show up as, and C:\test is a folder on my C: drive.

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Link to comment
Share on other sites

The only catch is, I don't know if you can pull this off on a box with an existing "A:" drive (mine is blissfully floppyless).

As you said, not if you have a drive at A: already:

C:\> SUBST A: C:\Temp
Invalid parameter - A:

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

If you're running a 16-bit do porgram you could maybe launch it in DosBox and map the floppy to the folder through that.

Could you suggest how to do this?

It is a 16-bit dos program... Never done this before, a step-by-step instruction possibly?

[center][/center]

Link to comment
Share on other sites

1. Download & Install DosBox:

http://dosbox.sourceforge.net/download.php?main=1

2. (Optional) Install one of many graphical frontends for your applications:

http://dosbox.sourceforge.net/wiki/index.p...DOSBoxFrontends

These save you from having to manually type in the command line to run the program.

Although no longer being updates, D-Fend allows you to apply all settings and mounts to individual applications, if you can find it.

3. To mount the directory C:\floppy as disketter drive A: in DOSBox:

http://dosbox.sourceforge.net/wiki/index.p...rograms%2FMount

mount A "C:\floppy" -t floppy

4. This line can be added to DosBox.conf, see Step 4 at this link:

http://dosbox.sourceforge.net/wiki/index.p...ation+of+DosBox

Edited by weaponx
Link to comment
Share on other sites

1. Download & Install DosBox:

http://dosbox.sourceforge.net/download.php?main=1

2. (Optional) Install one of many graphical frontends for your applications:

http://dosbox.sourceforge.net/wiki/index.p...DOSBoxFrontends

These save you from having to manually type in the command line to run the program.

Although no longer being updates, D-Fend allows you to apply all settings and mounts to individual applications, if you can find it.

3. To mount the directory C:\floppy as disketter drive A: in DOSBox:

http://dosbox.sourceforge.net/wiki/index.p...rograms%2FMount

mount A "C:\floppy" -t floppy

4. This line can be added to DosBox.conf, see Step 4 at this link:

http://dosbox.sourceforge.net/wiki/index.p...ation+of+DosBox

Thanks so much!!!!

[center][/center]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...