[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

Need help and someone to compile program.

Asked by pacumming in Visual Basic Programming

Tags: winwav

Someone wrote the following program for me. What this does is it determines the day of the week and if it is AM or PM(time). It then finds a file and copies it over another file specified. In this case Startup.wav

My autoexec bat has the following lines in it:
SET WAVFROM=C:\WinWav\
SET WAVTO=C:\Winwav\Startup.wav
C:\getdaya.exe
__
The first SET statement tells the program what directory to find the Wav files in based on the day and if it is AM or PM.

The second SET statement tells the program where to write out the file (it actually copies the file it needs OVER startup.wav)
____

I want to eliminate the need for SET statements.
I really want to be able to add the lines to the program command line in the autoexec.bat file such as:
C:\getdaya.exe  C:\WinWav  C:\Winwav\Startup.wav
(perhaps an ending "\" is optional in C:\Winwav, do not know)

I actually have some other features but do not want to ask too much.
I will list it though..
Nice to have the ability where the program finds the proper file to copy from such as "mona" and ignores the extension (in this case WAV). It will read the extension type and then copy this OVER the file specified in the second parameter. However this file will also not have an extension listed. You will derive that from the first file.
Hence if I had a file mona.mp3, you might determine it is Monday morning and find the file that begins with "mona". You then would determine its extension is "mp3". Now you would copy this over the "StartUP" file name WITH the extension of "mp3".
If "Mona" really had a file name of "mona.ra", then you would end up creating startup.ra
Therefore in the second parameter I would leave off the extension....

Thanks, Peter
pcumming@carolina.rr.com
-Non VB programmer
-Am using this to generate different startup sounds and such depending on the day and AM or PM of the day.
-Could perhaps be used for other things in the future.
-Have a VB book but do not have VB installed. Thought someone could whip this out in about 30 minutes, I will test. Give big points.
___________________
Here is the program as is, the author is too busy to make these small changes for me:

DIM Today, Today$
DIM AmPm, AmPm$

Today = WEEKDAY(NOW)
AmPm = HOUR(NOW)

IF AmPm >= 12 THEN AmPm$ = "p" ELSE AmPm$ = "a"

CF$ = ENVIRON$("WAVFROM")
CT$ = ENVIRON$("WAVTO")
IF RIGHT$(CF$, 1) <> "\" THEN CF$ = CF$ + "\"
SELECT CASE Today
  CASE 1: CF$ = CF$ + "sun" + AmPm$ + ".wav "
  CASE 2: CF$ = CF$ + "mon" + AmPm$ + ".wav "
  CASE 3: CF$ = CF$ + "tue" + AmPm$ + ".wav "
  CASE 4: CF$ = CF$ + "wed" + AmPm$ + ".wav "
  CASE 5: CF$ = CF$ + "thu" + AmPm$ + ".wav "
  CASE 6: CF$ = CF$ + "fri" + AmPm$ + ".wav "
  CASE 7: CF$ = CF$ + "sat" + AmPm$ + ".wav "
END SELECT
ShellCmd$ = "COPY " + CF$ + CT$ + " /Y"
SHELL ShellCmd$
SYSTEM
[+][-]05/25/00 02:13 AM, ID: 2844200Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Visual Basic Programming
Tags: winwav
Sign Up Now!
Solution Provided By: Ark
Participating Experts: 4
Solution Grade: A
 
[+][-]05/21/00 01:08 AM, ID: 2830055Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 01:18 AM, ID: 2830071Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 01:54 AM, ID: 2830110Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:03 AM, ID: 2830122Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 02:05 AM, ID: 2830125Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:07 AM, ID: 2830127Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:07 AM, ID: 2830129Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:08 AM, ID: 2830130Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:09 AM, ID: 2830134Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 02:09 AM, ID: 2830136Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 02:11 AM, ID: 2830141Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:17 AM, ID: 2830146Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:34 AM, ID: 2830164Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 02:38 AM, ID: 2830169Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 02:48 AM, ID: 2830178Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 02:50 AM, ID: 2830183Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 03:00 AM, ID: 2830194Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 03:28 AM, ID: 2830226Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 03:29 AM, ID: 2830228Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 03:53 AM, ID: 2830257Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/00 04:36 AM, ID: 2830301Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/00 03:15 PM, ID: 2831351Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/23/00 03:27 PM, ID: 2839668Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/24/00 07:39 PM, ID: 2843371Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/25/00 12:10 AM, ID: 2843831Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/00 07:46 AM, ID: 2845441Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/17/00 08:40 AM, ID: 2973593Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93