I would like to know if somebody is good with Dos, i have two or three questions!
Printable View
I would like to know if somebody is good with Dos, i have two or three questions!
Post them and see if someone can answer them.:)
i would like to know :
how to declare variable,
find a cd-rom
and do concatenation(myvariable + "wefd")
Which language are you using? Basic?
Why use a batch? You can also use qbasic to create a little proggie that does the trick.
I'm not sure what you mean by find a cd rom but here's the variable stuff
(for in a batch file)
Code:
@echo off
rem set a variable
set myVar=Mark Sreeves
set newVar=%myVar%wefd
echo %myVar%
echo %newVar%
rem clear the variable
set myVar=
set newVar=
pause
I'm working in VB, but
I want to copy the run time elements for my program to work directly from a cd.(My application is a setup program and i don't want the client to install my setup and then run my setup to install other application).Somebody told me to do a boostrap but i'm not sure where to do it and how.A batch file work sort of like a exe and i could put it as the autostart on my cd.
If somebody have suggestions, common don't hesitate!!
thank you mark
i mean by finding a cdrom,to locate the user cd-rom so that i can know my source(for copying)!
You can use Basic to create a simple copy app. The Basic program doesn't need runtime files. And you can also put it in the autostart.Quote:
Originally posted by sebs
A batch file work sort of like a exe and i could put it as the autostart on my cd.
do you thimk i can fin a cd-rom letter in qbasic
Are your run time components just to support you setup program?
if so, you can access them directly from the cd(just put them in the same dir as the exe ie. the CD root)
you mean that if i put all my run time component on my cd root it will work
I think yes. (not on the root, but in the same dir as the program) The p&d wizard also uses a vb program setup.Quote:
Originally posted by sebs
you mean that if i put all my run time component on my cd root it will work
Yeah!
Well, it might
I did one in vb5 last year.
the setup.exe runs automaticly from autorun.inf and had 4 buttons (well they weren't actually buttons but that's not important) which "shell()"ed to the four real setup apps stored in 4 sub dirs on the cd
so the root looked a bit like this:
DIR1
DIR2
DIR3
DIR4
ASYCFILT.DLL
AUTORUN.INF
COMCAT.DLL
CTL3D32.DLL
MSVBVM50.DLL
oleaut32.dll
OLEPRO32.DLL
Setup.exe
STDOLE2.TLB
i'll try this
hope it will work cuz it's gonna save me some time!!
If it does'nt what you guys think about a bootstrap:
http://msdn.microsoft.com/library/de...tuplstfile.htm
[Edited by sebs on 10-03-2000 at 09:56 AM]