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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom App Hard Coded to C:\

Status
Not open for further replies.

shorty545

IS-IT--Management
Apr 5, 2004
82
US
I have an application that I'm trying to run on a Citrix Presentation 4.5 server that is failing.

The reason...It is hard coded to use c:\program files\... for the location of the files.

The problem...I have remapped the c:\ to e:\, therefore the application cannot find the c:\.

I cannot install the application into an application isolation environment because there is no .msi or installation for the application. It's simply an .exe file that makes remote calls to a seperate application server.

Any advice or help would be great.

Thanks,

Jeremy
 
Yeah i hate how when apps have hard-coded drive settings. Since there are no configuration files, try using the DOS SUBST command to create a mapped C: drive.
Ex) SUBST C: E:
Then trying running your executable. When done, you can delete the substituted drive SUBST C: /D
If it works, you can create a batch file to execute your app in this manner

 
Interesting, I haven't tried that. I always just mapped a network drive to "C:\" from \\<server>\m$.

net use c: \\<server>\m$

What does the SUBST command do exactly?
 
w33mhz,

Mapping the e:\ to the c:\ defeats my purpose of remapping the c:\. Now when a client connects the application works, but when they try to save as, it shows their local c:\ not as c, but as another random variable.

You are correct that this works, but it is not the solution i am lookin for.

I as well do not know the SUSBT command. I will have to look into it's function.
 
It's a no go...

I put subst c: e:\ into a batch file and it works fine when i run the app locally on the citrix presentation server.

But when publish the batch file and try to run from the client, the batch file shows "invalid paramer -C:" during the execution of the command.

My guess is because it has already mapped the c:\ locally as "C$ on client C:" and it is conflicting with the subst command.

i'll keep searching, but thanks for the thoughts so far...
 
you know you may want to just leave it with the SUBST mapped and just publish the app that way. I can see where if you publish that batch file that if multiple people try to run the published app that it will have conflicts. The published app should affect the local client machine so I don't think your local c drive mapping is going to intefer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top