Search found 16 matches
- 29 Jun 2011 09:48
- Forum: DOS Batch Forum
- Topic: Windows XP Quick Launch Size
- Replies: 1
- Views: 3596
Windows XP Quick Launch Size
So I have an interesting puzzle. I am working in a virtual environment and I need to be able to resize the Quick Launch bar to the right of the Start button on the taskbar dynamically based on the number of icons a user would have. Ideally I would like to run a simply batch file that would run at st...
- 27 Sep 2010 07:28
- Forum: DOS Batch Forum
- Topic: Dynamically assigning root folder
- Replies: 1
- Views: 2806
Re: Dynamically assigning root folder
FAIL....
%~dp0
Problem solved.
%~dp0
Problem solved.
- 27 Sep 2010 06:51
- Forum: DOS Batch Forum
- Topic: Dynamically assigning root folder
- Replies: 1
- Views: 2806
Dynamically assigning root folder
I work in a domain environment. I write a lot of little batch files to do simple installations of MSI often with MSTs. I have noticed I am constantly long handing the server names from which I am installing files in my batch files. We have some pretty serious standards in place that make me think th...
- 21 Sep 2010 09:15
- Forum: DOS Batch Forum
- Topic: File Installation through reboot
- Replies: 2
- Views: 3928
File Installation through reboot
I need to install three separate .msi with .mst transforms. After the first .msi/.mst installation I need the machine to reboot before proceeding to install .msi 2 & 3. I cannot do it as a scheduled task, and I cannot set it in the startup menu as it is crucial that it runs as an administrative ...
- 25 Aug 2010 09:20
- Forum: DOS Batch Forum
- Topic: Creating fold using trime date stamp
- Replies: 10
- Views: 11141
Re: Creating fold using trime date stamp
Excuse me. That would create a text file with that information in it. Additionally it would make the file name the current date.
To make a folder I assume you could use the md (make directory) command with the same variable %filename%
To make a folder I assume you could use the md (make directory) command with the same variable %filename%
- 25 Aug 2010 06:50
- Forum: DOS Batch Forum
- Topic: Creating fold using trime date stamp
- Replies: 10
- Views: 11141
Re: Creating fold using trime date stamp
Pretty simply really set filename=%date:~0,14% echo This sentence will end up in a text file on the C drive called %filename% >> "c:\%filename%.txt" Rather than echo in the above example you can simply send whatever you want from the command line to that file. for example: set filename=%da...
- 24 Aug 2010 06:33
- Forum: DOS Batch Forum
- Topic: Remainders
- Replies: 2
- Views: 4023
Remainders
Does batch have a way to deal with remainders?
I am making a calendar in batch that will account for leap years. I want to take the date and divide it by 4. If it has a remainder then it is not a leap year, if it does not then it is a leap year. I cannot find any way to draw out the remainder.
I am making a calendar in batch that will account for leap years. I want to take the date and divide it by 4. If it has a remainder then it is not a leap year, if it does not then it is a leap year. I cannot find any way to draw out the remainder.
- 09 Jul 2010 06:40
- Forum: DOS Batch Forum
- Topic: Logging into Windows
- Replies: 3
- Views: 5342
Logging into Windows
So I have a program that will send out a .bat file to computers on my domain and execute them once they arrive. I have a single login for all of the computers on my domain that I want to use to login and then run the rest of the batch file. Is there code that would allow me to login to a machine thi...
- 28 Jun 2010 08:31
- Forum: DOS Batch Forum
- Topic: Copy to individual profiles
- Replies: 4
- Views: 5218
Re: Copy to individual profiles
You're sharp. Thank you so very much.
- 24 Jun 2010 13:15
- Forum: DOS Batch Forum
- Topic: Copy to individual profiles
- Replies: 4
- Views: 5218
Re: Copy to individual profiles
Unfortunately I cannot take the risk of putting it just in all users. It actually has to be in each and every profile on the machine individually. (I am actually replacing an old shortcut which has been place in each profile by a now obsolete program which was designed to do this exact thing.) As mu...
- 24 Jun 2010 08:38
- Forum: DOS Batch Forum
- Topic: Copy to individual profiles
- Replies: 4
- Views: 5218
Copy to individual profiles
So I am wanting to copy a shortcut to an individual user's profile. I currently have a batch file that will allow me to find all of the usernames on my local machine. What I would like to do is to then use these usernames that this batch comes up with to apply a shortcut to the individual user's des...
- 07 Jun 2010 13:18
- Forum: DOS Batch Forum
- Topic: Dynamically assigned environmental variables
- Replies: 1
- Views: 3062
Dynamically assigned environmental variables
The remote part is not the issue it is testing the variables that were just created. As an example when I run the batch file you created above I get: userVar1=Administrator userVar4=All Users userVar5=Default User userVar6=LocalService userVar7=NetworkService userVar8=setup userVar9=mainuser1 userVa...
- 07 Jun 2010 12:49
- Forum: DOS Batch Forum
- Topic: Dynamically assigned environmental variables
- Replies: 5
- Views: 5815
Re: Dynamically assigned environmental variables
What about testing the variables dynamically. For example I am on a domain network. I am looking specifically to remove an icon that has been placed on individual users desktops. I do not really care about the administrator, localservice, setup etc... users. However some machines only have one user ...
- 07 Jun 2010 12:25
- Forum: DOS Batch Forum
- Topic: Dynamically assigned environmental variables
- Replies: 5
- Views: 5815
Re: Dynamically assigned environmental variables
DOH! I'm a butt. echo %userVar7%. All set here. You are wonderful. Thank you my german friend.
- 07 Jun 2010 12:23
- Forum: DOS Batch Forum
- Topic: Dynamically assigned environmental variables
- Replies: 5
- Views: 5815
Re: Dynamically assigned environmental variables
So this works to put each of the usernames into a variable. Now why can I not reference them.
For example I cannot "echo userVar7" and get the seventh entry.
For example I cannot "echo userVar7" and get the seventh entry.