How to set the variable USERPROFILE of another user?

I have the main account that I use and an admin account to call anytime, that I need (for security system). I recently came across problems with repartition my hard drive (it's a bit difficult to change the size of the partition between a basic volume and an extended volumes, even with a third-party utility that performs its work until Windows starts and wanted to completely pass the two user profiles (and preferably both program files)) (, but I can't even more with after discovering that most of my programs have themselves out of their expanded paths and not system variables linking the search through the registry) for the extended partition. I was trying to see if I could do that through a batch file (whose content I have so far for the non-admin will be shown below after this post), but I can't find anything in the registry that I could change. My question is twofold:

  1. I try to take the right path by using a batch script to move the two users? If I did do something wrong and if so, what?
  2. How could I put a variable user for another user on the same system? (It is a continuation of question 1)
  3. (Second question) Is it possible to move my programs Program Files/Program Files (x 86) runs on my D: drive and operate them out of that? I was also wanting to have just my system files and similar to run on my C: drive, because of the drastically limited space. The only exceptions to that would be the dozen of programs that are installed in the folder root (aka C:\whatever).
I tried repartitioning earlier, because I wanted to make room for my C: drive D: drive much smaller to create many more. Here are the sizes of partition for each partition on my HARD drive:

  • 100 MB (OEM Partition)
  • 9.77 GB (recovery Partition)
  • 58,59 GB (C:, OS, 6,49 GB drive left... not enough for me to copy it to my iTunes songs about library 1 200 on it from my old netbook)
  • 229.63 GB (D: drive, too much for my tastes here)
I wouldn't mind if I ended up having to save my D: drive format before that, but I don't know how useful it would be.

Code for the batch file (I named it moveuser.bat)
(the first line and the last two lines are to refuse to execute the batch file and DO NOT EXECUTE comments)
GoTo EOF
cmd
title moveuser.bat
MD C:\TEMP\cmdtmp
MD "D:\From C\Users\" " " ".
MD 'D:\From C\Program Files files.
MD ' D:\From C\Program Files (x 86) \Common Files.
CD C:\Users\Isiah
Robocopy ".» "------" "D:\From C\Users\" /e /mt:2 /copyall /dcopy:t /tee /log:C:\TEMP\cmdtmp\tmp.txt ".
set USERPROFILE = "D:\From C\Users\""" "
CD appdata\local
RD ' virtualStore\program files (x 86) \aura4you "/s /q
CD C:\TEMP
RD /s /q cmdtmp

: EXPRESSIONS OF FOLKLORE
REM 'DO NOT RUN. "

Your system is too complicated. If you implement it then it'll keep you causing pain. Much better to keep things simple as follows:

  • Move the 'My pictures' folder on the D: drive.
  • Move the 'My music' folder on the D: drive.
  • Let your profiles on the C: drive.
  • Let the program files on drive C:, if only because many setup programs will create their files in "C:\Program Files (x 86)" instead of using the % ProgramFiles (x 86) % as they should.
This approach will free a lot of space on the C: drive. It will also allow you to put your iTunes library on the D: drive.
A few comments on your batch file:
GoTo EOF
cmd
. . .
: EXPRESSIONS OF FOLKLORE
': EOF ' is a built-in label that references at the end of the batch file. You jump to it as follows: goto: eof. Have a line of the form
: EXPRESSIONS OF FOLKLORE
interferes with the integrated label. Get rid of it!
The "cmd" line is not necessary and will have unexpected side effects. Get rid of it.

Tags: Windows

Similar Questions

  • How to set up an account for another user of my PC (Windows Vista) and give its right of administrator to download the program

    My daughter helped me to set up an account to my own PC with password protection. Please indicate how to set up another account for someone and give it the administrator right to download the program.

    There is information about the configuration of the accounts here:

    http://Windows.Microsoft.com/en-us/Windows-Vista/demo-understanding-user-accounts

  • How to set the iCloud keychain to another device?

    How to set up the Keychain for iPad iCloud 3rd generation?

    How to configure iCloud Keychain on iPhone, iPad and Mac

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • How to set the variable if condition-based

    I use a generator of BI Publisher model for word 10.1.3.4 and I need set variable based on if condition something like this:

    If Status = "open" set X = X + 1 other value Y = Y + 1


    Thanks in advance

    Dive together and read the variables in the IF.

    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e12187/T421739T481157.htm#4535390

  • Newbie how to set the variable of type element?

    JDEV 10.1.3.1

    When I do the following in JDEV BPEL Designer...

    new variable
    create the variable
    Select the element type
    Select a file local xsd schema
    Select the item of choice

    Seems to define OK but fails to compile. Namespaces seem to include the namespace defined in the xsd.

    When I define variables of type message and navigate to the appropriate wsdl file and choose a message there that seems to work / compiles very well.

    I'm sure that since I am just getting started it's a common error, please help and thank you. All variables must be defined as messages types and reside in a WSDL file?

    Thank you
    John

    Hi John,.

    I don't know if it is possible to import a schema in a process directly. What I usually do is to import the WSDL describing the interface. This is the file that you use to define the client-partnerlink. If your schema is imported correctly, you can access the type definition via the partner-links-node in the type selector (this works at least in JDEV 10.1.3.3 and 10.1.3.4).
    To import your schema in the wsdl, you must switch to the display structure in wsdl editor and after a right-click on the node types to select "insert types." Inside types, you insert the XML schema within the schema, you must insert an import tag. The properties for this tag are the location of the file and the target namespace used in the schema. The XML structure that results should look like this:

    -----




    namespace = "http://xmlns.oracle.com/Order_Booking___Shipment" / >



    -----

    Greetings,

    Christoph

  • How to set the variable to 2 days ago

    This is my variable to the date I want to put two days before today so I thought that if I put this negative 2 it could subtract these dates... I want to use my #ydate # variable in my select querey as follows... Any help on this will be thanks a lot!

    < cfset ydate = DateFormat (Now (),-2, "MM/DD/YY")

    < cfquery datasource = "bashful_emoi" name = "res" >
    SELECT * FROM Patients WHERE doc_code = ' #doccode # ' AND Date_Seen ' #ydate # ' ORDER BY Date_Seen DESC, ASC last_name
    < / cfquery >

    You must use the DateAdd function () do the subtraction. See code below.

  • How to set the number of books, a user can borrow at a time?

    I'm testing with Adobe Digital Editions ACS4. I am able to borrow only one book at a time. Before you borrow another, I need to return the one I already, if not, I get an error E_LIC_TOO_MANY_LOANS of the ADE. Entry into fulfillment.log of ACS4 looks like:

    December 2, 2009 16:47:21, AdeptServlet of ERROR 008: request error [91.82.28.27]: E_LIC_TOO_MANY_LOANS Http://eBooks.webhop.org:8080/realization/Fulfill urn % 3Auuid % 3A0b257c8b-e1e3-4007 - 95 has 9-80efc2b5e9e1

    Is it possible to increase the number of books, that a user can borrow at a time?

    Thank you.

    This is controlled by the maxloancount for the Distributor

  • How to set the value of a variable in a cluster in LabVIEW to c#?

    Hi guys, I'm working on a small c# program, which by using the interface provided by LabVIEW.  And I know that, with the help of lv. SetControlValue (name, value) can set a variable just on the front panel. But in my case, there are several groups on the front panel. Then it confused me how to set the variables in these groups. For example, there is a cluster named clusterA and a variable named a., I tried something like this:

    lv.SetControlValue("clusterA.valueA",1);
    

    but it totally inoperable. Everyone has some experience with this sort of thing? Thank you very much!!

    Hey guys, thanks a lot for all your response. I just found a simple way to solve this problem. For example, there is a cluster named "ClusterA", and there are only two witnesses, who are: an int value named "IntA" (default = 10 IntA value) and a string value named "StringA" (by default the StringA = 'abc'). In c#, if you call the method:

    var clusterA is vi (Array). GetControlValue ("ClusterA");

    you will get a table looks like: clusterA = {10, 'abc'}; So if you want to change IntA 123, you simply do:

    clusterA.SetValue (123, 0); 123 the value, 0 is the index of IntA in clusterA, after this clusterA table = {123, 'abc'}

    After that, simply to make the table in LabVIEW using:

    VI. SetControlValue ("ClusterA", clusterA);

    and now you see the LabVIEW, IntA is changed.

  • [ADF, JDev12.1.3] How to set a variable to bind a VO (where clause) in a managed bean?

    Hallo,

    I have a request based on VO.

    The query contains a where clause clause and a bindi variable.

    In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.

    I found this code it is good start, but I do not know how to set the variable binding.

    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator");
    iter.execute();
    
    
    

    You kindly help me?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.

    Thank you

    Federico

    You can use:

    iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
    

    Note that this approach is used if you have bind variable in the where clause.

    To set variables bind to ViewCriteria, you must use VarableValueManager.

    This post may be useful for you: binary: how to set the Bind variable values at run time?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    You must set "use VO directly.

    For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.

    Or you can use the ExecuteWithParams operation in your the view layer.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Not to complicate your life

    All VO lines are represented as ViewRowImpl class if you already have "custom class".

    Finally, you can generate your own ViewRowImpl class if it is necessary for this.

    Dario

  • How to set the password on the body of the e-mail in custom e-mail template

    HY,
    I have a model of personalized message in the definition of e-mail > Console Design.
    I send this "Email Template" with the user password, but I do not know how to set the variable "password" in the body of the e-mail.
    I searched Varables > objectives > Variables, but I have not found any variable think as password.

    Some have an idea about this? How to set the password on the body of the email?

    Kind regards
    PIZA

    You can use a custom Java code. See the following:

    Notification by e-mail to the users after that they change their password from IOM

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • How to set the output of the report to the session variable

    Hello
    Is it possible to output report to the session variable value. If my report returns 1 row and 1 column.

    I have a dashboard command prompt where I select name, but I want to find the ID of the same name.
    This ID I want to move to a Fx column, to achieve this, I created an interim report and I got the code. Now my problem is how do I put this ID in the session variable.

    Please help if anyone knows...

    Have you read this:
    How to set the session / presentation in the repository variable variable

    Dashboard invites on Month Name but the report on the ID of the month filter:
    Re: Guest dashboard on the name of the month but the report on the necessary month ID filter

    If you have dashboard guest (name), then you can have that one report that is filtered by a name but present card to display or not id but use id in the service. Or two reports as in the solution in the second link above and the second report has id in the function and filter by the id of the first report. You need not define this ID in the session for this example variable.

    Please close your previous discussions, if they are treated.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • How to set the dependency?

    Hi, I created two projects in the framework still a draft package is based on another medium he uses this project with the class. I am therefore unable to build the project.  In the samples under folder browser 'BrowserFieldDemo' and 'commonlib' of projects with the same addiction they began compiling correctly.  But iam unable to set the dependency it please tell me how to set the dependency.

    My project folder structure:

    com\adea\blackberry

    -Project1

    ------------------------File1

    ------------------------File2

    -project2

    ------------------------File1

    ------------------------File2

    Thanks and greetings

    Sunil.G

    Set the type of project that will be used by another project like 'library '.

    And this library project will be available for you to create dependencies.

    http://picasaweb.Google.com/tbilisoft/BlackberryForum#5275894851814275858

  • How to set the java path on windows 8

    How to set the java path on windows 8

    Original title: Java

    Way easier access and the value of your PATH environment variable is as follows:

    1. Press + W to display the search settings panel
    2. Type "path".
    3. Choose "edit the system environment variables.

Maybe you are looking for

  • Satellite X 200-wake affter BSOD upward from the previous day

    Hello In recent months, I have a problem with my laptop.It works just great, until I got close the lid and put on laptop in standby mode. After his return to stand-by and after working on it, it hangs on blue screen.I tried to reinstall Vista bud he

  • Satellite Pro A40 inside cleaning due to overheating problems

    Hi Forum,I want to clean my Satellite Pro A40 carefully inside due to overheating problems. Can someone provide me with a sort of manual how to open the SPA40 correctly resp. How to clean it. I think that indoor air to blow a few tablets will not sol

  • Reset password for Age of Empires 3?

    So I have 2 accounts of Age of Empires 3, one for myself and for my friends (in case someone else decides they want to play).  I have my original account that I play, but has friends I never use.  I have reaced level 120 on my original CD and want to

  • Marked by mistake to a partition 'Active'. Cannot access my XPS L501X.

    I can't find my start-up recovery disk to fix this. I am able to make one from another computer laptop I can change the status of the partition without losing all my data?  Thanks for any help you can give me.

  • Windows7 sp1 update gets error 0x8E5E0147

    I have windows 7 home edition x 64 based system. Updating to windows 7 sp1, I get an unknown error with 0x8E5E0147 error code. I tried following troubleshooting steps. (1) control panel ran troubleshooting for windows update (2) analysis system Ran t