Over 1 million tech questions and answers.

Solved: Getting to a user-defined method

Q: Solved: Getting to a user-defined method

I am taking a beginners computer science course in Java, and I am currently learning about methods. There is one question where I have to calculate the ending balance on a deposit at a given rate of interest, and it says I need a user defined procedure-type method (called compound), and a main method that will call it.

I just want to know how to get the program to move to the user-defined method because when I run it, it does not output the last statement which gives the ending balance. It only outputs the main method. This is what I have:
Code:

import java.io.*;

public class CompoundInt {

public static void main (String[] Args) throws IOException {

BufferedReader myInput = new BufferedReader (new InputStreamReader ( System.in));

String inDeposit, inRate;

System.out.print("Enter your bank balance: ");
inDeposit = myInput.readLine ();

System.out.print("Enter the annual compounded interest rate: ");
inRate = myInput.readLine ();

compound ();
}

static public void compound (double deposit, double rate, double endingBalance){

deposit = Double.parseDouble (inDeposit);
rate = Double.parseDouble (inRate);

endingBalance = deposit + ((rate/100) * deposit);

System.out.println("The ending balance of $" + deposit + " at an annual compounded interest rate of " + rate + "% is $" + endingBalance);
}
}

RELEVANCY SCORE 200
Preferred Solution: Solved: Getting to a user-defined method

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Solved: Getting to a user-defined method

This is an example about using a method :
Code:
[SIZE=2][B]
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CompoundInt {

public static void main(String[] Args) {

BufferedReader myInput = new BufferedReader(new InputStreamReader( System.in));
String inDeposit, inRate;
try {
System.out.println("Enter your bank balance: ");
inDeposit = myInput.readLine();
System.out.println("Enter the annual compounded interest rate: ");
inRate = myInput.readLine();
double deposit = Double.parseDouble(inDeposit);
double rate = Double.parseDouble(inRate);
double endingBalance = compound(deposit,rate);
} catch (IOException ioe) { // mandatory
System.out.println(ioe.getMessage());
} catch (NumberFormatException nfe) { // optional : it's a way to check if the entered
System.out.println(nfe.getMessage()); // -------- values are numbers
}
}

static public double compound(double dep, double rt){ // The method returns a double variable
double result = dep + ((rt/100) * rt);
System.out.println("The ending balance of $" + dep + " at an annual compounded interest rate of " + rt + "% is $" + result);
return result;
}
}
[/B][/SIZE]

Read other 2 answers
RELEVANCY SCORE 88.4

My system is Win7-SP1 with 2 SSD's and 2 HDD's. What I want to do is keep the pagefile.sys file off my SSD boot drive and put it on the other SSD. But the standard method to do this does not work - when I use the Virtual Memory dialog to set up a page file on my non-boot SSD the dialog says it is created ok, but in fact no file is created.

There is no error message generated, but if I try to put the pagefile.sys on my non-boot SSD Windows creates a new one on the boot drive immediately after restarting. This is because there never was a pagefile.sys created on the non-boot SSD.

Right now I have the page file on one of my HDD's and it works fine there (at least it seems to - how can anyone really tell?) and I have no page file on my boot SSD. But I'd rather have the pagefile.sys on my second SSD instead.

The following techniques do NOT WORK:

1. Copying pagefile.sys from it's current location to the SSD. Windows won't copy it because it says it is in use.

2. Booting off the Win7 DVD and using the System Repair Command window to copy pagefile.sys. This fails because the command window does not see or list pagefile.sys.

3. Restore from backup to alternate location. This fails because my backup program (Paragon 12) does not back up the pagefile.sys file or the Recycle Bin and a few other "system" files like that.

I'm hoping there is some obscure DOS command (or something) that supports the creation of a pagefile.sys from the command prompt. ... Read more

A:How to create user-defined pagefile.sys when the normal method fails

pagefile.sys can't be copied, as there's a persistent handle opened to the file during boot and is only destroyed on shutdown - given it only holds memory pages for the duration of the running OS session, copying it doesn't seem to make much sense anyway.

The way you "move" the paging file using the sysdm.cpl dialog is to first set the system to "no paging file", rebooting, and then setting a paging file on a different volume (and rebooting again). Assuming you do these steps, it should create a pagefile.sys on the specified volume and get rid of the one on the other. To be sure though, make sure you are using the dir /A command to view the root of the drive that should contain a paging file (pagefile.sys).

Read other 3 answers
RELEVANCY SCORE 67.6

I have a spreadsheet containing a list of Invoices to print. As part of my Macro I need to be able to copy a row of data from the list (columns a to k), however the row will be different every time and is chosen by the user.

So I was looking at putting in a prompt to ask the row number to copy and go from there

Any help welcome.
 

A:Solved: Excel Macro help - copying user defined row

welcome to the board. Dou you already have a macro that does anything special?
all you need is define a variable and an input box, then if the nr is a valid row exceute the copy command

e.a.g
Code:

Sub Sample()
Dim xrow As Integer
xrow = Application.InputBox("enter row nr.", "ROW", 2, , , , , 1)
If cell(xrow, 1).Value = "" Then Exit Sub
Range("A" & xrow & ":K" & xrow).Copy

' and here come the rest of the code to paste or whatever the macro has to do

End Sub


See if this helps you on the way
 

Read other 3 answers
RELEVANCY SCORE 59.2

I was wondering if anybody could tell me how to use the User Defined function in Paint Shop Pro 7 or could tell me a website where it is explained. Like what are the different Filter Matrix boxs, and what do the numerical values define, and what do division and bias values define?

Thanks in advance for the help
 

A:PSP User Defined Function

Sorry, but I don't have a clue what you are asking , but there are a lot of PSP tutorials here http://viewlet.com/viewletlibrary/teachlist.jsp?action=go_find&value=paint+shop&language=English
Hopefully there will be one to help you.

Or here is a link to a Paint Shop Chat Forum. Might find the answers you need
http://www.jasc.com/chat/chat.asp?
 

Read other 2 answers
RELEVANCY SCORE 59.2

I am looking for help in using user defined forms for printing in Windows Vista 64.

I cn create the form inder the server properties in the printer pannel but I can not see them in the print driver.

Is anyone sucessful in creating and using custom print forms?

Thanks

Read other answers
RELEVANCY SCORE 59.2

It has been a while since I have dabbled with VB so please be patient. I have been searching how to do this for a couple of days now. I am trying to create my own data type. I have done it before but cannot think how for the life of me. I want to store a number of objects and have, for example, it's height, weight, shape in a type. I don't want to simply use integer values, I can do this easily, but I would like to have, say, "Small", "Medium", "Tall" for the height and "Round", "Square" and "Triangle" for the shape, etc. As I said, I know that you can define a list of items that you want in your own type, but search as I may I cannot find reference to it. Any help would be appreciated. Thanks.
 

Read other answers
RELEVANCY SCORE 59.2

I would like to be able to use certain keys or key combinations to enter data like user name, email address, etc that I have to enter often. Preferably without having a program running in the background. Is there a way?
 

A:user defined keys

Depends on what program you are using. Word has auto-text which works pretty well. Do you want this functionality in all applications?
 

Read other 3 answers
RELEVANCY SCORE 58.8

Hi,

I'm currently trying to create user-defined characters in Vista 64 Bit using the private character editor (eudcedit.exe).

I can create characters, but I can't select the user-defined font in the character map (charmap.exe).It's not in the list of fonts.

It does work in Windows XP and Windows Vista 32 Bit, but not in Windows Vista Ultimate 64 Bit.

Is there a way to use my own characters in Windows Vista 64 Bit editions?

Thimo

A:User-defined characters in 64 Bit Vista?

Have you tried any other free character editors?
There will be freeware ones available, have a search on google.
free font creator vista 64 - Google Search=

Read other 1 answers
RELEVANCY SCORE 58.8

Is it possible to define a delay between the point a right click is done and Windows actually doing something about it? Preferably a hidden system setting/registry hack than some third party dll hook.

Thanks

Read other answers
RELEVANCY SCORE 58.8

Excell XP:
Where is the file where the user-defined chart types are stored?
And is it possible to make a back up of this file?

I just had all my customiezd chart types deleted for no reason. I wish I had a back up of them...

It can be also useful in case of total reinstalation, sharing with others...

Second problem: when I close and re-open Excell, the user-defined chart type, that was set as default is giving squeezed chart area on the top of the chart window, making it unreadable, after I put a title.
The same operation work if I don't close Excell. Once I close it, the chart type become unusable.
 

A:Where do I find User-defined ChartTypes?

Well, I just created a custom chart and checked my machine for files that changed at that time. Then I searched for those file names. You can view the results, I did not.

Excel10.xlb (this also stores toolbar settings, see http://support.microsoft.com/default.aspx?kbid=280659 )
Excel10.pip (never heard of this one, but see http://support.microsoft.com/?kbid=193006 )
XLUSRGAL.xls (prior versions used to create xl5galry.xls for custom chart storage, but see http://www.woodyswatch.com/office/archtemplate.asp?v5-n11 )
XL8GALRY.xls (don't know why--I didn't TOUCH Excel 97 and XL8 is Excel 97)
 

Read other 3 answers
RELEVANCY SCORE 58.8

Hi all, maybe a lame quedstion, but the X1 features this nice, programmable "Star" key. I can think of several folders I would like to use it as a shortcut to, however I fail to think of a way to do so:  I would like it to open explorer in a specific path (folder). E.g. open explorer with C:\Program Files.So it is neither an application (alone), nor a specific file.How do I do that? Any workarounds?

Read other answers
RELEVANCY SCORE 58.8

I have a UDF for giving me the name of a sheet called "sheetname", which simply returns the name of a sheet as a string. I would like to then be able to go to that sheet. I can't use a hyperlink because the cell is dynamic as is the sheet reference so the cell changes. I tried this:

Sub GoSheet()

Dim sheet As String

sheet = sheetname(ActiveCell)
Application.Goto Reference:=sheet & "!" & "C3"

End SubClick to expand...

I got an error of course saying that I had not defined "sheetname", but it is defined as a UDF. How do I use that in the macro?
 

A:Can I use a User Defined Function in a macro?

Read other 8 answers
RELEVANCY SCORE 58.8

i'm trying to get rid of a shortcut that's preventing me to assign a new one. have searched the HD for .lnk -files, and there's none that would have that key combo.

odd.

would there be a way of getting a compiled view of all the shortcuts that are assigned?

i'm on 7-64, but was sometimes wondering about this for the past several years on other flavors as well.

cheers.

A:who knows where the info on user-defined shortcuts is kept?

Shortcut Key Explorer is a nice small piece of software that does exactly that. It scans your computer for global, non-standard keyboard shortcuts. Free download: RJL Software - Software - Utility - Shortcut Key Explorer - Download

Kari

Read other 2 answers
RELEVANCY SCORE 58.8

Hello,

My printer has a print job that just isn't DELETING! It is driving me nuts, can anyone help me out?

FoxPro User-Defined Job

Status: Deleting-Printing
Submitted: 6/21/2007
It was submitted in June and it is still not deleting (after rebooting the computer numerous times).
 

Read other answers
RELEVANCY SCORE 58.8

Hey, Guys. I am converting to MP3s a friend's 50 (!!) CDs of the Bible to a USB stick for him.

How can I User Define the name and numbering system in Nero 7 to start at a higher number than 1?
For instance, the first CD is Genesis 1 through 23. You do that by setting the track naming system to Genesis %N to get it to start naming Genesis 1 and automatically go through to Genesis 23. Is there a way to get it to start at Genesis 24 and continue naming correctly to Genesis 39 for the next CD? I know I can just let it start at 1 again, and manually rename them after the conversion, but that is going to be a pain for 50 CDs if there is a better way!

Thanks.
 

Read other answers
RELEVANCY SCORE 58

Is it possible to create user defined fields in outlook and then make them sortable?
We would like to Categorize clients by
By type and office
Be able to sort by office
By Client Level
By Portfolio type
Thanks,
Jerry
 

A:User Defined Fields Outlook 2010

Read other 6 answers
RELEVANCY SCORE 58

somehow my desktop dir changed. I want to change it back. how do I go about this?

(used to be c:\documents and settings\user\desktop\ and now it's c:\documents and settings\user\desktop\2)
 

A:DESPERATE- where is a user's desktop directory defined?

Read other 7 answers
RELEVANCY SCORE 58

When I try to access my email, I get
error occurred reading the startup configuration site
line 263 reference error user is not defined

I can get to websites using Netscape and Explorer; can read my email at my ISP's site, but need to get to my saved email folders etc

Is there someway to restore whatever my user id was? how do I find it? where do I put it?

My ISP techie suggested I uninstall Netscape and reinstall it, but wouldn't I lose all my saved emails, addressbook, bookmarks, etc?
 

A:Netscape 7.0 line 263 reference err - user not defined

You need to BACKUP your profile first.
http://home.att.net/~cherokee67/index6.html#7profile

NETSCAPE, MOZILLA, and FIREFOX SOLUTIONS
http://home.att.net/~cherokee67/index6.html

Performing a "Clean" Install for Netscape 7.xx or Mozilla 1.xx
http://home.att.net/~cherokee67/ns67cleaninstall.html

Read all of this and the links on it and copy the pages so you can read it after you uninstall netscape so you can have it to read to install it again.
Read on what to do the very first time to get your old profile over to the new profile.
 

Read other 1 answers
RELEVANCY SCORE 58

This is similar to post: https://forums.lenovo.com/t5/ThinkPad-L-R-and-SL-series/User-defined-key-no-hotkey-option-anymore/m-... However, I would like to bring it up again because the solution here doesn't seem to work anymore. Also, since my hot key was previously customized, it still works, except it cannot open mail. This is such a useful feature so I don't know why Lenovo would remove it... Why fix something that is not broken?? 

Read other answers
RELEVANCY SCORE 58

Just like fields in Outlook Start,End, Modified,...etc, I want to create a field Date. How to create User Defined Field.
Is it Possible?
 

Read other answers
RELEVANCY SCORE 58

Hi, I recently had to update Lenovo Vantage and a few PC updates in the vantage app as well. Since then, there's no option to use the user-defined key (on the F12 key) as a hotkey anymore. Before I had it set up to CTRL + ALT + G which was linked to an app in the start menu. Now I only have the option to open a website or to enter text. Is there a solution to this? Thanks

Read other answers
RELEVANCY SCORE 58

Lenovo T400
Windows 7 Pro 64-bit SP1
Intel Core2 Duo P8880 2.67GHz
4.00 GB RAM

User-defined administrator account does not load at boot.
Have 2 options on startup. One is a standard user, the other is "Other Users". The same options appear when you "Switch User".
After logging into the standard user the user-defined administrator account can be seen in "User Accounts" in the CP.
The built-in administrator account is disabled and cannot be enabled, even in safe mode, as it has to be done from an administrator account.
When clicking "Other Users" at startup and entering the login details for the user-defined administrator account they are rejected.

Any help would be appreciated.

A:User-defined administrator account does not load.

Didn`t know a standard user could create an admin account.

I would try again, enabling the hidden admin account to create another admin account.

Read other 2 answers
RELEVANCY SCORE 57.6

Hi all~

Working on a group lab project for a hangman game; initial testing phase. Flow of the game- user enters a word (no try catches set yet) of 13 letters or less- if the second player enters an incorrect guess(using a button- which tested works), will draw a part of the hangman. Three classes for the program; one handles the logic, one handles the gui setup (including the main) and the other handles the paintComponent. As shown below (in testing phase), if a user enters an incorrect guess a call is made to the class that develops the hangman graphics (drawLeg()). When running the program a null pointer exception is generated. I've thrown this code around a billion different ways with no relief- any pointers will be greatly appreciated!

Code for the main class:
Code:
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;
import javax.swing.border.*;

public class HangmanHome
{
public JPanel panelB;

public static void main(String[] args)
{

//Program opens with a dialog box; control then goes to the interface.
//This variable will be the vehicle for collecting the initial word-
//really it will be an array of char most likely.
String word;

word = JOptionPane.showInputDialog("Hello, lets play Hangman!\n" +
"Please enter a word up to 13 letters in length");

//Instantiate the interface.
JFrame fra... Read more

A:Solved: Java code; trying to access a method in a paintComponent method

Hi,

your g is null. You have not yet initialised it.

public static void drawLeg()//Graphics g
{
g.drawLine(180, 150, 210, 205);
//panelB.repaint();
//System.out.println("access to the class");
}
 

Read other 2 answers
RELEVANCY SCORE 57.2

Is it possible to use functions that I define in the VB module in spreadsheet cells?
 

A:Excel: Possible to use user defined (VBA) functions in cell formulas?

Hi there,

Absolutely. A great addition with the VB5 library. Although, you could actually do it, very carefully, with the old Excel4Macros as well (but those are finicky and troublesome IMHO). Also, in Excel 2007, even though it defies everything ever said about UDF's, you can sometimes change a set of cells formatting via UDF as well! I wouldn't recommend it though, as I don't think it was intended to be able to do so, not really sure there. There are some things you should do to a UDF to make it 'spreadsheet cells friendly' though. Such as naming your variables, think of using Application.Caller method, not using Activesheet or Activeworkbook and such. Compare those to using the INDIRECT() function without leaving a reference (second syntax) on multiple sheets/books. If you have a UDF, feel free to post it up. If you don't have one and would like one, please post your requirements along with some sample data and the expected results.

HTH
 

Read other 2 answers
RELEVANCY SCORE 57.2

Hi there,
I apologise if this has been covered before. I am planning on importing a large number of contacts from excel to outlook (both 2003).
Because there are so many contacts I want to be able to categorize them beyond the default categories provided in outlook (company, job title etc) so that I can then sort them alphabetically, ctrl+shift those of the desired category and send out emails. E.g. say I want to add the category favourite pizza, and then I may want to sort the contacts to email everyone whose favourite pizza is (say) vegeterian.
I have found two ways to add additional categories:
1) via the user-defined fields (text based)
2) Add an additional category to the master list (yes or no)
drawbacks:
1) I have not found a way to map these details to those in outlook, i.e. when trying to map I can't find the user-defined categories list anywhere (?)
2) this DOES map but you "can't sort by categories" when looking at a phone-list view of contacts. It is also possibly prone to error as all the information is not under the same heading (e.g. favourite pizza vs listing a number of different pizzas)
I don't think I explained that very well... but if it makes sense to anyone please help!
Thanks very much
 

Read other answers
RELEVANCY SCORE 57.2

What is the available number space for user-defined events?

A:Available event id # space for user-defined system events

/id EventID : Specifies the event ID for the event. A valid ID is any number from 1 to 65535.
That answers the first question.

I guess the question now is does it matter what number I use or will using the same id as a pre-defined system event cause an issue?

Read other 1 answers
RELEVANCY SCORE 57.2

I recently got a new Thinkpad P52s, and was wondering if anybody had a way to make the User Defined Key (the star key on F12) work as a pause button without having to go into the registry and change the keys? Thank you.

Read other answers
RELEVANCY SCORE 56.8

Hi! I am in the process of building a database for my business. I have built the datatables and I have built the forms for the users to enter the data. Now I need to create a form (preferably like my data-entry one) where a user can enter the last name or account number of who they are looking for and only that specific person's account comes up. I know my way around Access but I am unfamiliar with VB. and coding. If someone has a better idea of what I could do I am open to suggestions. I just need to have a way of users searching for a specific account by name or number. Thanks to anyone to can help!
 

A:ACCESS 2010: How do I create a user-defined search form?

Well you could use a separate search form, but what would be really usefull is to add 2 "Find Combo's" to your current data entry form, they will list all the names and accounts for the user to choose from and go straight to the record.
They are a very efficient way of finding data.
If you want a Search form I posted one on this thread.
http://forums.techguy.org/business-applications/960769-solved-form-search-select-records.html
 

Read other 3 answers
RELEVANCY SCORE 56.8

When I assign a macro name to a user-defined menu item in an Excel workbook file, the macro name is assigned with the full path of the Excel workbook file name. The problem is that if I copy the Excel file to another folder and open it, the macro cannot be activated because the location points to another file.
Any way to solve this ?
 

A:Assigning macros to a user-defined menu item in Excel

Read other 7 answers
RELEVANCY SCORE 56

Windows Server 2012 R2

I created a user defined Data Collector in PerfMon (running as administrator) based on this post:

http://blog.synology.com/?p=2086

The Data Collector is listed under the the Data Collection Sets | User Defined | Server Manager Performance Monitor | My Data Collector.

When I right click on Server Manager Performance Monitor then choose 'Start' I get the following window:
[Window Title]
Performance Monitor
[Main Instruction]
When attempting to start the Data Collector Set the following system error occurred:
The operator or administrator has refused the request.
[OK]



My user account is in the local Administrator group as is Domain Admins which I'm a member. I also added my user account to the local perfmon groups.

I also made sure the local Administrators group is in 'Log on as a batch job' in User Rights Assignment. As recommended on some other troubleshooting steps. 

Still not working, any other troubleshooting ideas? Most of what I've found relates to Task Scheduling and I'm able to create in there without issue.

Read other answers
RELEVANCY SCORE 56

Dear Microsoft: Please don't take away my Live Mesh | Microsoft - CNET News






Quote:
The beauty of Live Mesh, though, is that you can sync any folder anywhere on your hard drive without having to move or copy it to a specific location. You simply tell Live Mesh which folders to keep in sync on each PC, and it does the rest.
The new SkyDrive will sync your files. But unlike Live Mesh, it won't sync specific folders from anywhere on your PC.
Instead, it creates a folder on your PC called SkyDrive. Any subfolder or file you wish to sync has to be moved to that specific location. So what was once an automated process now becomes a manual and laborious task. It also can easily create problems for applications that want to store content in your Documents folder, for example.


I just switched to Skydrive for this! It was a royal pain figuring out how to junction my documents folder on my second drive into my Dropbox folder. Is there any way to avoid upgrading?

A:Microsoft updating Skydrive, no longer can sync user-defined folders

I was under the impression you could put the SkyDrive anywhere you wanted it. I was planning to put it on my data drive, which is where my documents and user created files are anyway. I point my libraries to these folders, so anything I would want synced, I could store, by default, in SkyDrive.

Read other 1 answers
RELEVANCY SCORE 56

We have enable the counters for week to do the analysis of the Memory and CPU Utilization in our 2003 Server.
Report got generated with 14MB file , however when we tried looking for the report we unable to find any collector information showing up on it and when we tried to pull the report with PAL tool found no output , could you please let us know any other action
need to be taken care before we enable data collector set in server 2003  32bit 

Read other answers
RELEVANCY SCORE 54.8

I have placed a couple of user defined data collector sets on my machine to monitor remotely a number of other servers.
I left those data sets running for a round a month and I want to stop them now.
Every time I select any of those data sets and click the stop button, the stop button grays out, leave it for a considerable time, then refresh ... but nothing changed. the data set stays in running status.
I tried this with all the remote monitoring data sets, but non of them stopped.
The size of the data set is increasing uncontrollably and I have to stop them, but I don't want to delete what has been collected ...... How can I do that?
 

Read other answers
RELEVANCY SCORE 54.4

Hello!
I've already asked the
question regarding auto-starting the data collector sets and have posted MS's answer - now it seems the issue can be much broader: I failed to make my user defined data collector sets start according to their schedules, for example:
I created a test data collector set (with several CPU counters), saved it as a template and tested it on Windows Server 2008R2 and Windows Server 2019:
2008R2

2019

I've tested various user defined data collector sets on all my Windows Server 2019 computers - physical and virtual, domain and non-domain joined, the result is always the same - the data collector sets just don't start and the following event(s) get registered
in the Diagnosis-PLA log:

Here's the codes' description -
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-pla/590752a5-ddc3-49e4-9914-147a90bd0193

No issues arise when starting the data collector sets manually.
Can anyone tell me if it works on your computers with Windows Server 2019?

Regards,
Michael

Read other answers
RELEVANCY SCORE 52.4

I wish to partition my rebuilt PC into C: (OS only), D: (games and utilities), and E: (data) drives, my intention being to make future upgrades or OS reinstalls easier. (The machine currently only has one HDD.)

Therefore I want to move C:\users to the E:\ partition. I've already searched for ways to do this and there are seemingly three ways of going about it:

1. Change the value in My Documents->Properties->Location tab as described here:
Move Your Data to a Safer, Separate Partition in Windows 7 | PCWorld

2. Change the value in HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CurrentVersion\ProfileList as described here:
http://www.windows7hacker.com/index....-in-windows-7/

3. Leaving C:\users where it is and using a symbolic link to E:\users as described here:
Move the Users Directory in Windows 7

Is there a consensus on the 'best' method for doing this? If not, what are the advantages and disadvantages of each of the above methods?

Thanks for any advice.

A:Best method for moving user folders to another partition?

Check the links in the response to my similar question. I built a new PC and used an SSD and 1TB hard drive. I installed the OS and my recording studio software on the SSD. I have everything else on the 1TB hard drive.

What do I install on SSD

My only comment is partitioning the drive. You are better off installing a second (or even third) hard drive for what you want to do. If you just partition the hard drive and the hard drive fails EVERYTHING is lost and unless you are doing frequent full hard drive (all partion) backups to another hard drive your partitioning had done you no good.

Read other 3 answers
RELEVANCY SCORE 52.4

Currently have multiple user profiles and have to log into each one and sign out before shutting the PC down.

could a batch file be created to sign out of all user profiles from any or one particular one...?

thanks

A:method to sign out of all user profiles in one click

Hello reddwarf,

When you shut down the computer, it will automatically sign out all users, but will prompt you to confirm first when other users are still signed in.

If you like, you could create a shortcut using the command below from OPTION EIGHT in the tutorial below to force a full immediate shut down.

shutdown /s /f /t 0

Shut Down Computer in Windows 10

Read other 7 answers
RELEVANCY SCORE 51.6

On computer1, I have successfully created a customized form with user-define fields in Outlook 2007 and a merge document in Word 2007 that works (starting the merge from Outlook 2007). I want to copy the custom form with the user-define fields and the merge document to a second computer (computer2).

I saved the custom form with fields from computer1 to a *.fdm file using the Tools, Options, Other, Advanced Options, Custom Forms, Manage forms. On computer2 I used the same process to install the custom form file (*.fdm) into Outlook 2007 and created a new contact folder that uses the form and displays/adds new contact records correctly. I also copied the Word merge document to computer2. Computer1 and computer2 both have Office 2007.

All the problems occur on computer2. First, when I attempted to merge (starting in Outlook 2007), Word gave messages that all my user-defined fields did NOT exist in the database although I could see them in the Contact records. I attempted to create a new document and the user-define fields do NOT show up in the Word merge field list either.

On computer2, I created from scratch a new contacts folder with a new custom form and user-define fields which works when merging. Therefore, the problem seems to be that Word can not see the fields I created from the *.fdm file I installed.

Can anyone please help me with this? Thank you in advance.

Don
 

Read other answers
RELEVANCY SCORE 51.6

In MS ACCESS...

How can I make a separate copy of the Window submenu item in a custom menu bar that will allow the user to switch from window to window (but nothing else)?

In my app I want to restrict the things that a user can do so I created my own, pared-down versions of the standard menu bar and tool bar and turn off the standard ones upon startup. I want to add the "Window" submenu to my custom toolbar. In this custom version of the window submenu, I don't want to be able to tile, arrange, or hide/unhide, I simply want a list of visable windows and to be able to choose one of them to be the active window.

I know how to put a new submenu item in a custom menu and how to insert menu items into it but I don't know how to add this un-named capability to my custom "Window" submenu.

I tried copying the existing Window submenu from the standard menu bar onto my own custom menu bar by ctrl-dragging it, but rather than creating a new instance of the windows submenu, it apparently only created a new pointer or shortcut to the existing window submenu item because when I went to delete the tile/cascade/hide/etc items from the custom window submenu, they also disappeared from the window submenu in the standard menu bar.

How can I make a separate copy of the Window submenu item in a custom menu bar that will allow the user to switch from window to window (but nothing else)?
 

Read other answers
RELEVANCY SCORE 51.6

I am continually getting the error "Run Time error 1004: Application defined or object defined error," each time a user clicks one of the cells within this excel file. It comes up as apparently a visual basic error. I've search other sites and unfortunately do not know enough about macros or excel formulas to know what to do next, so I thought I would post about it here. One user apparently has no trouble opening it while every other user has the same issue. Here is the debug code:

Private Sub Worksheet_Deactivate()

End Sub

Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Cells.Interior.ColorIndex = -4142
Target.EntireRow.Interior.ColorIndex = 8
Target.EntireColumn.Interior.ColorIndex = 8
End Sub

The "Cells.Interior.ColorIndex = -4142" portion is highlighted in yellow, so I assume that's where the error is. From there, I'm not sure what to do to change it. Please let me know as soon as possible what direction I should take.

Thanks

A:run time error 1004 application defined or object defined error

To be honest...I would assume that the file is corrupt and try to replace it. All seemingly meaningful links on this error involve VBA coding and things that can go wrong with it...way overhead my head and out of my interest arena .

If it truly is a coding error (as seems implied), I would take it to the originator of that file, since it throws an error.

Very strange that e pluribus unum...manages to use it without problems .

Louis

Read other 1 answers
RELEVANCY SCORE 51.6

I am trying to capture data for below counters on windows server 2012R2  and i see no counter data getting logged. i can capture memory counters data without any issues.  any suggestions on what i can do


{\PowerShell Workflow(*)\PowerShell Remoting: # of connections closed-reopened, \PowerShell

                     Workflow(*)\PowerShell Remoting: #
of disposed connections, \PowerShell Workflow(*)\PowerShell Remoting: #
                     of created connections, \PowerShell
Workflow(*)\PowerShell Remoting: # of forced to wait requests in
                     queue...}
 

Read other answers
RELEVANCY SCORE 51.2

Hi, Guys.
Good Day!
Need your assistance on how to determine who re-enabled a certain user AD account in AD via Event Viewer? Please advise.
Thank you in advance!

Read other answers
RELEVANCY SCORE 51.2

Hi guys,

Any idea about this. Method and tool of protecting the security of user data residing in PC and Laptops.

1.Pre boot encryption
2.Full Hard disk encryption
3.Data at rest encryption.

A:method and tool of protecting the security of user data residing in PC

are you asking whether encryption is worth it?

Read other 3 answers
RELEVANCY SCORE 48.8

Hey,

I've been a little confused over the past few hours. I'm following a tutorial and everything has gone fine up until the past few steps. Is the String "fname" defined? It's confusing as the program doesn't do anything. Even when I add "fname = "test.txt" or something similar nothing is read.

Any help appreciated.

Heres the code:
Code:
import java.io.*;

public class WordCount1
{
private static void linecount(String fname, BufferedReader in) throws IOException
{
long numChar = 0;
long numLine = 0;
long numWords = 0;
String line;

do
{
line = in.readLine();

if (line != null)
{
numChar += line.length();
numWords += wordcount(line);
numLine++;
}
}

while (line != null);
System.out.println("File name: " +fname);
System.out.println("Number of characters: " + numChar);
System.out.println("Number of lines: " + numLine);
System.out.println("Number of words: " + numWords);
}

public static void linecount(String fileName)
{
BufferedReader in = null;

try
{
FileReader fileReader = new FileReader(fileName);
in = new BufferedReader(fileReader);
linecount(fileName,in);
}

catch(IOException e)
{
e.printStackTrace();
}
}

public static long wordcount(String line)
{
long numWords = 0;
int index = 0;
boolean prevWhiteSpace = true;

while (index < line.le... Read more

A:Solved: Java: String defined?

Read other 10 answers
RELEVANCY SCORE 48.4

I have a game I'm trying to run, but I keep on getting an error message saying: " Script Error: Handler not defined " and at the bottom it says: " #EventQ ". Then there are two buttons at the bottom of the dialogue, one is " Quit " and the other one is " Continue " .

How do I fix this Problem??????

Windows XP Pro.
 

A:Solved: Script Error: Handler not defined

Read other 7 answers
RELEVANCY SCORE 47.6

Currently I have an add-in that includes an "Export Worksheet" (menu item option) - this works perfectly.

However, one of my users has a workbook that includes vba code behind the worksheet, which then refers to vba 'module' procedure - however when the export worksheete is exported, it exports the worksheet, but not the macro.

The obvious way around would be just to include the macro code in the Add-in, however, what I need is more of an error handling function, I need the worksheet code to simple IGNORE or error message if the procedure doesn't exist.

Not sure how to do it!?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo HandleError0


Application.ScreenUpdating = False

If Not Intersect(Target, Range("FORM_CHGTYPE")) Is Nothing Then
[COLOR="Red"]projectprogramme[/COLOR]
End If

Application.ScreenUpdating = True

Done:
Exit Sub

HandleError0:
GoTo Done

End Sub

Breaks on the red higlighted section, with:
Compile Error:
Sub or Function noy defined.Click to expand...

And the current error handling doesn't stop the code from executing.
 

A:Solved: Excel VBA Error Handling: Sub or Funcion not defined

Read other 6 answers
RELEVANCY SCORE 47.6

Hi,I have excel sheet which contains multiple rows for each country.The requirement is to split the file for each country and save with country name.I have got the below macro but when im trying to run it,getting error as label not defined.Please advise:
Sub CopyData()
Dim LMainWB As String
Dim LNewWB As String
Dim LRow As Integer
Dim LContinue As Boolean
Dim LColAMaster As String
Dim LColATest As String
Dim LWBCount As Integer
Dim LMsg As String
Dim LPath As String
Dim LFilename As String
Dim LColAValue As String

On Error GoTo Errorcatch

'Path to save all new workbooks to
LPath = "C:\Users\43693678\Documents\Split"

'Retrieve name of the workbook that contains the data
LMainWB = ActiveWorkbook.Name

'Initialize variables
LContinue = True
LRow = 2
LWBCount = 0

'Start comparing with cell A2
LColAMaster = "A2"

'Loop through all column A values until a blank cell is found
While LContinue = True

LRow = LRow + 1
LColATest = "A" & CStr(LRow)

'Found a blank cell, do not continue
If Len(Range(LColATest).Value) = 0 Then
LContinue = False
End If

'Value in column A
LColAValue = Range(LColAMaster).Value

'Found occurrence that did not match, copy data to new workbook
If LColAValue <> Range(LColATest).Value Then

'Copy headings
Range("A1:C1").Select
Selection.Copy

'Add new workbook and paste headings into new workbook
Workbooks.Add
LNewWB = ActiveWorkbook.Name
ActiveSheet.Paste
Rang... Read more

A:Solved: Macro giving error 'label not defined'

Read other 12 answers