Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21266

[RESOLVED] Shell Instruction and Paths

$
0
0
I have a problem

In one application executable I have a SHELL instruction that does something like this

shell "unzip -quo "+chr$(34)+relativepath\zipfilename+chr$(34)+ -d "+chr$(34)+"relativepath+chr$(34), vbnormalfocus

lets say the path where this app is C:\archivos de programa\brandname\exename.exe

unzip.exe and myprogram.exe are in the same folder

this app will works great if you runs it going to the folder and executing it manually.

------------------------------------------------------------------

now, I have another application that must RUN that first application

but that another app is in another PATH, in another DRIVE like

D:\Archivos de programa\brandname\mymainapp.exe

this another app. RUNS is some moment the first APP using SHELL instruction.

and the first APP fails to UNZIP, why?, because it is running acting on the wrong directory path.

any idea how to set up SHELL to ACT on the directory/drive where the executable is AS DEFAULT without explicit it in the string parameter? OVERALL because the content of the SHELL is not hardcoded, it is loaded from inet after passing some securities.


oh IF by the details it sound somehow suspicious: it is a software suits that has an onlines installers, is two softwares pack that works together, and lastly as a part of EASY INSTALLATION FOR NEWBIES, it does all automatic, so first runs one installation when finish it launch the second installation and that is the reason.

Viewing all articles
Browse latest Browse all 21266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>