Over 1 million tech questions and answers.

How to create a batch or VBS script to install multiple windows patches from a shared folder on Network

Q: How to create a batch or VBS script to install multiple windows patches from a shared folder on Network

Hi,
Can anyone help me how to create a batch file or vbs script to install multiple windows patch (.exe) file from a network share folder. Also I want get the individual log file of all user including hostname.
So please help me because we need to deploy multiple patches in around 100 PC and we are not using any WSUS server and windows automatic update.

Thanks & Regards
Rakesh Kumar

Rakesh Kumar

Read other answers
RELEVANCY SCORE 200
Preferred Solution: How to create a batch or VBS script to install multiple windows patches from a shared folder on Network

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.)

RELEVANCY SCORE 94.4

so im an IT specialist at a big car dealer ship im not that good with scripting but what i want to do is when i go around to a computer i want to be able to put a flash drive in run a batch script that creates a folder on the C drive transfers a few files (xml and .bat ) to that folder then from that folder i want to run the batch script that will create a scheduled task to run ccleaner when the pc is in idle for 10 min
we have 600+ pc's some are on the domain some are off the domain with various user names/passwords and pc names also different os's (xp win 7 and some vista) some are 32 bit but most are 64 bit


ok so i made a scheduled task on my pc then exported the XML i put the files on a flash drive then i made a batch to copy the other batch scripts/xml's to a folder on the c drive (that part im having no issue with )only issue i have is when i try to run the batch to make the task on a different pc then the one i created it on i get a message saying "error: no mapping between account names and security ID's was done <17,8>:logon type
i plan on just popping in the flash drive and running these scripts as i go around doing the preventive maintenance or wile im on a pc to troubleshoot an issue


here are my scripts

this one is run off the flash drive and creates a folder on the c drive i have no issues with that but im posting it just as a reference

@echo off
REM Check if 32 or 64-bit OS
if "%Processor_Architecture%"... Read more

A:creating a batch script to create a scedualed task on multiple pc's

Hi there,








  
Quote: Originally Posted by joeykong


only issue i have is when i try to run the batch to make the task on a different pc then the one i created it on i get a message saying "error: no mapping between account names and security ID's was done <17,8>:logon type


Is this the only issue?

It's not a problem with batch but with Task Scheduler. Before you can import a task that originated from another computer, data contained in the "UserId" element of the task xml has to be changed to match up with a user that exists on the machine you are importing the task to.

E.g.

Code:
<Principals>
<Principal id="Author">
<UserId>COMPUTERNAME\Username</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
The part in red must be changed to one of the users of the machine you are trying to importing this task to.

Read other 2 answers
RELEVANCY SCORE 85.2

Hi everyone. 
I want to create a batch file(*.bat) that can auto install some of my programs from my CD silently. Actually i own a cyber-cafe and i format my computers once a week. After formatting and re-installing XP, i install some programs like Adobe reader
10.1.1, Google Chrome, Microsoft Office 2003, File formats converter, google chrome, mozilla firefox which you know is a necessity for a cyber cafe user. Installing a program one by one takes a lot of time and somehow frustrating. So i want it to be automated.
I am posting a screen-shot so that it would be easy for you to figure out the issue. 

Thanks & Regards, Amol . Amol Dhaygude

Read other answers
RELEVANCY SCORE 84.4

Is there any body who can create a batch file to install multiple  *.msu  files in running system (windows 8.1/windows
7sp1)?

A:Create a batch file to install multiple *.msu files in running system

See the article below, basically you can use the WUSA command line to install your updates quietly.

http://support.microsoft.com/kb/934307

Be kind and Mark as Answer if I helped.

Read other 3 answers
RELEVANCY SCORE 82

Hi Everyone,

I'm new to batch files but I want to create a batch file to run at startup on Windows 7 so when a user logs in with there username and password into the network to see if the Xerox 7535 network printer is installed and if it isn't to install it.

Now because these are computers that multiple users use frequently if I were to do this manually I would need the user to login to the network with there credentials and then open a window and type in //printer_server_name/ and a window would pop up and again they would have to type in there network credentials (username & password) then select the printer Xerox 7535 printer and right click on it and select connect and it would install the printer drivers if needed.

Now when I login as administrator to the computer I can connect to the printer server but when I try to connect/install to the Xerox 7535 printer it doesn't install and I get Error:"0x0000052e so instead I have to have each user login into the computer and install the printer which works that way.

I'm open to any other ways of doing this and I really appreciate the help.

Thanks,

Bill
 

A:How to Create a Batch file to install Network Printers

You can assign a logon script to each user on each computer, the script would be something like this:


Our example configure_printers.vbs script has the following:
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\util-2\print-brother-1"
net.AddWindowsPrinterConnection "\\util-2\print-hpphoto-1"
' Set the default printer now
net.SetDefaultPrinter "\\util-2\print-hpphoto-1"

Save the file with a .vbs extension

To assign a logon script to a user or group
Open Computer Management.
In the console tree, click Users.
Where? System Tools/Local Users and Groups/Users
Double-click the user to which you want to assign a logon script.
Click the Profile tab.
In the Logon script field, enter the path and name of the logon script you want to assign to that user, and then click OK.


You can place a single copy of the script somewhere inside the Public user directory or you will need to place individual copies inside each user's subdirectory but bury it deep enough so the users won't accidentally delete it.
 

Read other 5 answers
RELEVANCY SCORE 76.4

I want to create a batch script which can search for .jpg and .jpeg

I am new to this script language, so don't no how to search, so I am posting this thread here.

Please can anyone tell me the batch script which can search all drives and folders and subfolders in a computer for .jpg and .jpeg, once found they must get copied.

Please help me with this, please give me the script code for this.

Read other answers
RELEVANCY SCORE 76

Dear All,

Objective: I don't like to download windows update on all the machines i have here.
So i would like to download the windows update on any one of my machine, then i can copy and install the machines wherever i want. 

Question: 1) Is that possible to do like this? If yes, where i have to download the windows update as file?.
                 2) If i install the windows update which i downloaded from dell machine to hp machine, is there will be any problem? (OS same on both machines)
                 
Info: I'm using windows 7 professional 64 bit.

Please share your ideas and knowledge to get me out of this problem.

Thanks in advance.

Read other answers
RELEVANCY SCORE 75.6

Hello,

I have the following batch file that works great, until I happen to execute it on a file with a + in it.

@echo off
cls
for /r %%f in (*txt) do copy %%f m:\text files

I searched around for a bit, but I couldn't get any of the information I found about escape characters to work. How can I make the batch file treat the file name in %%f as a literal?

Thanks!
 

A:Batch script to create files with special characters

Read other 10 answers
RELEVANCY SCORE 75.6

Create a batch script for Oracle ODBC connection
 

Read other answers
RELEVANCY SCORE 75.6

Hi everybody - My problem is that I have 100 identical printers, all the printers have network connectivity onboard.

I want to create 100 print queues for these printers, however I don't really want to add each lpr port/print queue manually !! Is there anyway that this can be done via script or batch file ??

Thanks in advance

Ron
 

Read other answers
RELEVANCY SCORE 75.6

Hello!

I'm having trouble creating a batch script to simply copy a shortcut to the desktop from a program installation, then carry out some tasks.

Overall my goals are:
Burn a CD that includes a autorun.inf that will load a batch script
In the script I want it to activate two self extraction archives
1.
activate a self-extraction archive to install the necessary files to C:\Program Files (x86)\Software
2. (once 1. completes)
activate a self-extraction archive to install the necessary files to C:\Program Files (x86)\Software\Content

Then finally have the batch script create a shortcut from C:\Program Files (x86)\Software\Softwarename.exe
to
%userprofile%\Desktop\softwarename.ink

Any advice will be appreciated. thanks in advance..

A:Creating a batch script or use a 3rdpartyprogram to create shortcuts

Still looking for a solution!

Read other 4 answers
RELEVANCY SCORE 74.8

I was wondering if there was a way to create a set of folders in a specific directory according to a date range that i input.

ie.

Select start date 2011 10 01

select end date 2012 10 01

Select Output path of c:\users\XXXX\desktop\export data

and it creates a folder for all days from 2011 10 01 through 2012 10 01 and places them in the output path i have set for it.

any help would be greatly appreciated.

Thank you

A:Is there a Script or batch file that can create folders by date range

Welcome damjohnron to the windows 7 forums.

Here are some snippits of a dos batch file that will create a directory with the datek and tell you if it already exists.


set DATEST=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
echo %datest%
rem if it looks ok, then you can press enter to continue
pause
if exist %homepath%\documents\%datest% goto dup1
md %homepath%\documents\%datest%
rem the pause can be taken out if you wish.
pause
go to end
:dup1
rem you already have done this.
pause
:end

you can change the path statement to the directory you wish.

This batch file can be run each day that you want to create a new sub directory.
There are other ways to do this but a bit more complicated such as reading an external
text file for the directory names.

Rich

Read other 4 answers
RELEVANCY SCORE 74

Greetings, new to the forum. I apologize in advance as I'm sure this topic has been posted before, but didn't find anything that addressed this formally...

So, the idea is that my company has a ton of desktops, connected to a domain, most of which do not have over 2gigs of RAM on them. When said desktops are booting up, Windows is checking for updates, utilizing as much as a gig and a half of said RAM, which is causing these machines to slow down to the point of being largely unusable. What I'd like to do is disable winupdate to automatically start up, then have user's run it themselves, maybe on a Friday before they leave or something. I want to set this up so there's as little for them to do as possible - many of them are not technological. In other words, windows would check for updates, install the updates, restart, etc. without any prompting from the user. Any suggestions as to how to best go about this?

Thanks in advance. Toffer.

A:Windows Update - Win 7 Ent x64 - create batch file to install updates

GPO is your friend - you should post your query to the TechNet forums, where there are many experts in GPO and WSUS.
https://social.technet.microsoft.com/Forums/en-US/home?forum=w7itproinstall

Read other 1 answers
RELEVANCY SCORE 73.6

hello, is it possible to have a batch file make a shared folder?
 

A:batch file make a shared folder?

Welcome to TSG!

Shared as in Shared on the network, or just shared with other users on the same PC?
Both are possible.
MD - Make Directory
Cacls - set NTFS permissions
Net Share - create network share

For more info, type these commands:
MD /?
Cacls /?
Net Share /?
 

Read other 2 answers
RELEVANCY SCORE 72

Hi all,

I'm trying to make a batch or powershell file that will call multiple names and passwords from a CSV file and then create local users with them.

Anyone able to help? - I've made users in command line before using the Net User command, but i'm not sure how to use the variables to say read the data from this spreadsheet, then add a user with it.

Any help would be gratefully received!

Thanks
Matt
 

A:Batch / Powershell script to add multiple Local users

i found this from when i used to do sysadmin,

Code:
###########################################################
# AUTHOR : Marius / Hican - http://www.hican.nl - @hicannl
# DATE : 26-04-2012
# COMMENT : This script creates new Active Directory users
# including different kind of properties based
# on an input_create_ad_users.csv.
###########################################################
Import-Module ActiveDirectory
# Get current directory and set import file in variable
$path = Split-Path -parent $MyInvocation.MyCommand.Definition
$newpath = $path + "\import_create_ad_users.csv"
# Define variables
$log = $path + "\create_ad_users.log"
$date = Get-Date
$i = 0
# Change this to the location you want the users to be created in your AD
$location = "OU=Test,OU=Users,DC=hican,DC=nl"
# FUNCTIONS
Function createUsers
{
"Created following users (on " + $date + "): " | Out-File $log -append
"--------------------------------------------" | Out-File $log -append
Import-CSV $newpath | ForEach-Object {
# A check for the country, because those were full names and need
# to be landcodes in order for AD to accept them. I used Netherlands
# as example
If($_.CO -eq "Netherlands")
{
$_.CO = "NL"
}
# Replace dots / points (.) in names, because AD will error when a ... Read more

Read other 1 answers
RELEVANCY SCORE 71.6

Hey there,

How can I create multiple folders in Outlook 2007? Specifically, I have a list of 50 names, and I want to create a folder for each, in one batch.

Is this possible? Any suggestions?

TIA
 

Read other answers
RELEVANCY SCORE 71.2

I have set up on a networked PC (Windows 7 Professional) a shared folder directory structure which has sub-folders for each userid defined on that PC. Each user will from their own laptop on the network perform a network folder mapping to their own sub-folder. I am able to perform the first network folder mapping for user A. When I try to perform the second network folder mapping for user B using a different drive letter, I get the error message

The network folder specified is currently mapped using a different user name and password. To connect using a different user name and password, first disconnect any existing mappings to this network share.

Googled for help and found a number of suggestions like using IP address for the network folder mapping - I am using IP address. Found another suggestion to use "net use" to delete any existing mappings - when I type "net use", I do not see any other mappings.

So I am at a loss, after staring at this problem for the whole day.

Any help would be very much appreciated. I will have about 60 defined users performing the network folder mapping from each user's laptop.

A:Windows 7 Network Folder shared access

Is B a subfolder of A? If so I think your scheme will require the folders be on the same level. Or if not that, in mutually exclusive trees. When you share say, Users, all subfolders are also shared. To share folders in a tree they should all be leaves.

Read other 3 answers
RELEVANCY SCORE 71.2

I have a Windows 7 Pro Desktop PC and a Windows 7 Home Edition Laptop. I would like to map a drive on the Laptop to a shared folder on the Desktop. In the Network portion of the Laptop it sees the Desktop PC name and under the PC name it shows the Users folder and under that it shows my Username. What it doesn't show are the two folders I have set to share with everyone. These two folders are in the root folder of the C: (main) drive of the Desktop. What do I need to do to see these two folders in the mapping window? Thanks for any assistance.

A:Unable to map to a shared network folder Windows 7

Welcome to Windows Seven Forums.

To avoid a lot of Q & A about your hardware and OS configuration, please click on this link to
Edit System Specs

Filling this out, at least partially, will save a lot of time. Another advantage is when posting a new problem, the person answering can just click the My System Specs link in the bottom of your post. No need to search for the information.

If you have multiple systems just indicate that in the System Specs so that we know why many of the fields are blank.

==============================

Are you able to read/write files in the Public folder on the desktop? If not, it's been my experience the fastest way to get the network sharing going is to be able to read and write files in the already shared Public folder. If you can't do that then you can pull your hair out trying to share other folders.

Read other 9 answers
RELEVANCY SCORE 70.8

i saw an article on tech t.v. how to create a batch file to launch multiple programs, so i went into notepad, typed the paths of three programs i use every day at work, named it work.bat placed it on my desktop, but when i double click it the programs dont launch. an msdos window opens and lists the programs i want to launch, but nothing else happens, what am i doing wrong?
 

A:create a batch file to launch multiple programs

Read other 7 answers
RELEVANCY SCORE 70.8

Hi,

I'm trying to create a batch file so that I can bring up 2 sites at one time when I open my browser. I use Firefox & IE8.
What I have done so far to no avail is created a file as follows and sent to desktop from notepad named test.bat:

@echo off
start "(web site)" "www.(site).com"
start "(web site)" "www.(site).com

without parenthesis in the above. I can get these to open consecutively, same browser window if I have a browser already open. But, not without browser open. How do I connect the 2 sites to open in 2 tabs, same window?

I also added them as multi home pages, then sent shortcut to browser to desktop. This does work, but, not what I want.

Is there anyway to create a batch file and have these 2 sites open at start up, by-passing the desktop without clicking to open the browser?

Also, I know that clicking on the shortcut to the browser that's on the desktop does slow down the launching process. If there is another way upon start up, will it be slower as well?

Thanks,
bbbluz

A:Create Batch file for multiple sites to start

start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE www.(site).com
start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE www.(site).com

Mozilla Firefox always opens two links in two different windows from a command line. There's no way around that. Sorry.

Read other 8 answers
RELEVANCY SCORE 70.4

I am sharing a folder on a windows 7 computer. On a windows vista computer, I can see the w7 computer listed in network, and I can see the shared folder. But when I double click on the folder, it says "Network Error, Windows cannot access \\W7COMPUTER\testshare
Check the spelling of the name, otherwise there might be a problem with your network"
I think the problem is on the windows 7 computer, but I don't know how to fix it

A:network error, windows cannot access shared folder

Worth A Look, IMO.
 
Louis

Read other 3 answers
RELEVANCY SCORE 70.4

Hello
I have been trying to create a shortcut to launch a batch file one folder up from the shortcut location.
I have been able to do this using and intermediate batch file in the same folder as the shortcut as follows:
Intermediate.bat:
@echo off
FOR %%V IN ("%~dp0..\") DO set curdrv=%%~dpV
start "" %curdrv%Oneup.bat

And the shortcut target is:
%windir%\system32\cmd.exe /c Intermediate.bat

and the 'Start in' is left blank.

This way I can move these folders anywhere on the drive or another drive and the shortcut still works.
However, I would like to leave out the Intermediate.bat file and launch the Oneup.bat directly. I tried:
%windir%\system32\cmd.exe /c FOR %%V IN ("%~dp0..\") DO set curdrv=%%~dpV && start "" %curdrv%Oneup.bat
in the Target of the shortcut, but it doesn't work.
Is there some trick to getting this to work?
Thanks

Read other answers
RELEVANCY SCORE 70.4

The batch file I am creating needs a command to create a temporary folder and then delete it when no longer needed. can this be done? How?
 
Bill

A:How to create a folder in a batch file,( .bat) and delete it

 Just use the mkdir command.  For the syntax just type mkdir /? from the command prompt.
 
Good luck.

Read other 3 answers
RELEVANCY SCORE 70.4

I'm trying to write a batch file that when run creates a folder named "Backup" followed by the time it was created, and then copies files to that folder.

When I run

md "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Backups\Backup %DATE%\"
xcopy /e /v /y "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Server\world" "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Backups\Backup %DATE%\"
pause

It creates a folder named the date it was created and places the folders in it. How do I make it so the folder is named the time instead of the date?

A:Batch file to create a folder with name of the time.

you could do something like the below.
*disclaimer*: I am a fairly decent UNIX shell script programmer, but I suck at Windows programming. I did NOT test this out, but it should give you the general idea.

set SOURCEFOLDER="C:\Master"
set BACKUPTIME=%TIME%
set BACKUPFOLDER="C:\blah\Backup %BACKUPTIME%"

md "%BACKUPFOLDER%"
xcopy foo "%SOURCEFOLDER%" "%BACKUPFOLDER%"

Read other 2 answers
RELEVANCY SCORE 70.4

Hi Everyone,

I have 500 files coming in and I need to first check if any file(s) exist then rename all of them regardless of what their filename is (the files are named in a different language).

No need to process them in any order.

Rename:

1. ??X?d?f-20110703-?+?d?H?-?-?=??.xls?
2. ??X?d?f-20110707-?+??-+?8.xls?
3. ??X?d?f-20110707-?+???j??.xls?
4. ??X?d?f-20110708-?+???M?n.xls?
5. ??X?d?f-20110713-?d?O?n?h?P.xls?
.
.
.
500


To:

?TWN_CH_INV_VISIT_FORM_01.xls?
?TWN_CH_INV_VISIT_FORM_02.xls?
?TWN_CH_INV_VISIT_FORM_03.xls?
?TWN_CH_INV_VISIT_FORM_04.xls?
?TWN_CH_INV_VISIT_FORM_05.xls?
.
.
.
?TWN_CH_INV_VISIT_FORM_500.xls?


Hope you could help me on this one. I?ve been trying to do this for weeks.


Thanks!

A:How to rename and add incrementing number suffix on multiple files in Batch Script?

You can do this with Windows Explorer for the most part.

If you select a bunch of files and then right click and chose rename, you can type in what you want the base file name to be and then windows will take care of adding the number to the end of the file.

HOW TO: Rename Multiple Files in Windows XP with Windows Explorer

Read other 1 answers
RELEVANCY SCORE 70

I want to create a batch file to create a shared folder to which Everyone has all rights. When I use the Net Share command to create the share, Everyone only has read rights.

What utility do I use to assign Everyone all rights to that folder? I used to know the answer to this question, but can't remember now.
 

Read other answers
RELEVANCY SCORE 70

Using Win 7 Pro Sp1.

Need to be able to make a shortcut for CAD guys to have access to a share on an WinNT driven mold machine. The mold machine and Win 7 workstations are on the same subnet and workgroup. When I set up the shortcut, I am asked for a UserID/password, that inevitably fails. The UserID/password works fine on Vista, XP and Win2000 machines, but Win 7 will not connect after submitting the UID/Pass. Tried using the <hostname of NT box>\userID in place of just the plain userID; made no difference.

Turning off the firewall makes no difference.

For what it is worth, I can user explorer on the WINNT interface and pull files from the Win 7 box. This workaround is not desirable because as good as the machinists are at their job, they are rather ham-fisted with the OS!

What am I missing with regards to file shares or networking with Win 7?

Thanks.

A:Can't create shortcut to a shared folder on another node

  
Quote: Originally Posted by jh11


Using Win 7 Pro Sp1.

Need to be able to make a shortcut for CAD guys to have access to a share on an WinNT driven mold machine. The mold machine and Win 7 workstations are on the same subnet and workgroup. When I set up the shortcut, I am asked for a UserID/password, that inevitably fails. The UserID/password works fine on Vista, XP and Win2000 machines, but Win 7 will not connect after submitting the UID/Pass. Tried using the <hostname of NT box>\userID in place of just the plain userID; made no difference.

Turning off the firewall makes no difference.

For what it is worth, I can user explorer on the WINNT interface and pull files from the Win 7 box. This workaround is not desirable because as good as the machinists are at their job, they are rather ham-fisted with the OS!

What am I missing with regards to file shares or networking with Win 7?

Thanks.



It sounds like an authentication problem which is fairly common when you try to access older machines.

If you have Windows 7 Pro, Ultimate or Enterprise try the adjustments outlined in the link below.

http://www.eightforums.com/network-s...tml#post177162

Read other 3 answers
RELEVANCY SCORE 69.6

i have shared my music folder on os x 10.8.2 via smb for windows, i have been able to connect to it using windows 7 up until now, when windows 7 keeps rejecting my username and password for my mac, every time i enter my mac username and password windows 7 says network password incorrect, so i tried my sister's credentials, same thing "Network password incorrect" what's going on?
 

Read other answers
RELEVANCY SCORE 69.6

Hi

I am using following batch file for cleaning the desktop and also for taking backup of desktop:

@echo off

set curr_date=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%

mkdir "%USERPROFILE%\My Documents\backup\%curr_date%_backup"

xcopy "%USERPROFILE%\Desktop" "%USERPROFILE%\My Documents\backup\%curr_date%_backup" /D/S/H/V/C/F/K/Y

for /d /r "%USERPROFILE%\Desktop" %%x in (*) do rd /s /q "%%x"
for /r "%USERPROFILE%\Desktop" %%x in (*) do del /f "%%x"

copy "%USERPROFILE%\My Documents\backup\%curr_date%_backup\*.lnk" "%USERPROFILE%\Desktop\"

del /q "%USERPROFILE%\My Documents\backup\%curr_date%_backup\*.lnk"

In the first line I am creating a folder with current date, e.g. curr_date_backup. Second, copying the contents of Desktop to the newly created folder. Third, deleting directories from the desktop. Forth, deleting files from the desktop. fifth, Copy back all the shortcuts to the desktop. sixth, deleting all the shortcuts from Current date folder.

This batch file is working perfectly in Windows XP. It works in win 7 also but the problem is that the name of the current date folder created by first command is "Desktop". when I use command prompt to check the name, the name is correct. I checked the properties of the folder the correct is there also. But in windows the name doesn't match with the expected one.

I need help. Kindly tell me what's going on? why window 7... Read more

A:How to create a current date folder using batch file?

Works for me, at least the first two commands work as advertised.

test.bat
set curr_date=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%
echo %curr_date%"

mkdir "%USERPROFILE%\My Documents\backup\%curr_date%_backup"
dir "%USERPROFILE%\My Documents\backup"






Quote:
C:\Users\xxxxxxx>set curr_date=2011-11-21

C:\Users\xxxxxxx>echo 2011-11-21"
2011-11-21"

C:\Users\xxxxxxx>mkdir "C:\Users\xxxxxxx\My Documents\backup\2011-11-21_backup"

C:\Users\xxxxxxx>dir "C:\Users\xxxxxxx\My Documents\backup"
Volume in drive C is D370_C
Volume Serial Number is C89E-70E8

Directory of C:\Users\xxxxxxx\My Documents\backup

11/21/2011 01:30 PM <DIR> .
11/21/2011 01:30 PM <DIR> ..
11/21/2011 01:30 PM <DIR> 2011-11-21_backup
0 File(s) 0 bytes
3 Dir(s) 28,082,577,408 bytes free

Read other 8 answers
RELEVANCY SCORE 68.8

I have a Visual Basic 6 app that reads files from a shared network folder and then processes them.  It was installed on two Windows XP computers many years ago.  Now we want to upgrade it to Windows 7.  I have two different computers with
Windows 7.  When I connect the Windows 7 computers to the network and run the app (which has a File Watcher window) and am watching all 4 computers, I noticed that the File Watcher window of the XP boxes show the files about 2 seconds before the Windows
7 boxes see the files.  What would cause this?  Everything else in the app works as it should.
The apps are running as Administrator on the Windows 7 boxes and XP compatiblility mode.  I have tried it both ways.
Confused...

Fred

Read other answers
RELEVANCY SCORE 68.8

hi so work in an recruitment office and im trying to create a batch file that the computers can run on a schedule to create a folder with that days date on it and move all files from the desktop to that folder( also created on the desktop), i want the code to only move files and leave folders and shortcuts unaffected

this is what i've got so far.






Quote:
cd desktop

for /f "tokens=1-3 delims=/" %%a in ("%date%") do md "%%a_%%b_%%c"
mkdir c:\users\training\desktop\%date:/=%

MOVE c:\users\training1\desktop\*.* c:\users\training1\desktop\%date:/=%


right now it is making the folder but not moving anything i know it has something to do with the \%date:/=%

il need this batch file to run from a hidden location so that 1. the students dont mess with it and 2. so the batch doesn't move itself from the desktop. also the computers all have different user names so if i could get something that will make "training1" what ever the current logged in user is so i don't have to rewrite the batch for each of the 60 or so computers we have.

A:batch&task to create new folder and move all desktop file to it

Especially with files and folders I find AHK easier to figure out than batch. You can download the free AutoHotkey scripting language here:
AutoHotkey

Here is a script to get you started. I commented out the actual deletions. You can run it and see the desktop files that would be moved in a msgbox. Each loop it asks if you want to quit to escape the tedium. Once you are sure it will work as expected comment out the lines with msgbox and uncomment the FileMove line

If anything gets moved into the folder that shouldn't be you can just drag it back during testing. The variable A_Desktop is the user's desktop directory so the script should work without editing as far as that goes.

Note: free to use at your own risk.


Code:
FormatTime,FolderName,,yyyy_MM_dd
FolderName := A_Desktop "\" FolderName
FileCreateDir,%FolderName%
Loop %A_Desktop%\*.*
{
If (A_LoopFileName = "desktop.ini")
continue
If (SubStr(A_LoopFileName,-3) = ".lnk")
continue
; FileMove,%A_LoopFileLongPath%,%FolderName%
MsgBox % A_LoopFileName
MsgBox, 4388, Quit Loop, Quit Loop?
IfMsgBox,Yes
ExitApp
}

Read other 5 answers
RELEVANCY SCORE 68.8

Hello,

I need help with creating batch script which install programs in Win XP (Win 7). I have a part of it...

Here is source code:


Code:
@echo off

set installed_app=C:\app\temp\installed_app.txt
set regexport=C:\app\temp\regexport.txt
set regexport1=C:\app\temp\regexport1.txt
set regexport2=C:\app\temp\regexport2.txt

If Exist %installed_app% Del %installed_app%

regedit /e %regexport% "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"
find "DisplayName" %regexport1%
find /V "ParentDisplayName" %regexport1% >%regexport2%

for /f "tokens=2 delims==" %%a in (%regexport2%) do echo %%~a >>%installed_app%
pause
The content of C:\app\temp\installed_app.txt is the following:


Code:
CCleaner
DjVuLibre+DjView
FreeCommander 2009.02b
IrfanView (remove only)
Windows Management Framework Core
Microsoft SQL Server 2005
Mozilla Firefox (3.6.16)
OpenVPN 2.1.3
SyncBack
Vim 7.3 (self-installing)
VLC media player 1.1.7
Windows XP Service Pack 3
WinSCP 4.3.2
7-Zip 9.20
Microsoft SQL Server 2005 Tools Express Edition
Microsoft SQL Server 2005 Express Edition (SQLEXPRESS)
WebFldrs XP
Microsoft SQL Server Setup Support Files (English)
CDBurnerXP
MSXML 6.0 Parser
Adobe Reader X (10.0.1) - Czech
Microsoft .NET Framework 2.0 Service Pack 2
Microsoft SQL Server VSS Writer
Microsoft SQL Server Native Client
VMware Tools
I have in txt file list of the programs which I want to install. Conte... Read more

Read other answers
RELEVANCY SCORE 68

Hello,

Hoping somebody has run into this already, not having much luck finding any answers.

I have an .hta application that utilizes a network shared printer. I'm running two windows 7 computers with the application on both, but the printer attached to just one of them.
I have the printer shared and from the second PC I can print to it using windows programs. Problem is, when I run the .hta application it doesn't print anything. I see the CMD window flash like normal but no printing. Printing from the PC that has the printer attached using the .hta application does work. Both applications point to the same shared resource name of the printer.

I have turned off password protection (in network settings) so I don't have to provide a password to either PC to be able to see shared resources. I have disabled UAC as well. Thinking that this is a permission thing but can't figure out what else to change. Played with the "run as administrator" option before I turned UAC off, but since I turned UAC off, from my understanding, this should not be the issue anymore.

Any ideas?

thanks,
Spline
 

A:printing with .hta script over network shared printer

Can any other application print remotely to this printer?
 

Read other 2 answers
RELEVANCY SCORE 67.2

I share files on my home network between my desktop PC and my laptop. I often move files between the two computers by placing folders on the desktops and then working with them or moving them to specific folders. The network for my laptop lists its desktop folder, but for the desktop PC, the topline \Users root folder is listed, not the desktop. Network and sharing work just fine. But how do I list the shared PC desktop folder so that I don?t have to drill down through the \Users file structure to reach the desktop folder?

A:List specific shared folder in Network, not root folder

Tried again, and now it's working correctly. Hmmmm...

Read other 1 answers
RELEVANCY SCORE 66.8

Hi everyone. I've got two issuesI'm hoping to get help with.

So I upgraded my CPU/Mobo/RAM and did a clean install of windows on the SSD, keeping whatever odds and ends I wanted on my HDD. Everything went great, I'm up and running, drivers all good, windows updates all good.

(Issue 1) However, when I go to Settings>System>Storage>Change where new content is saved and change all of the defaults over to the D drive, Windows doesn't create D:\Users\My Name\Pictures. It creates D:\My Name\Pictures.

Maybe it's just a quirk I need to live with, but I'd rather have a Users folder, especially since my kids will have a profile on this PC and I'll want to move their stuff over also.

(Issue 2) The other thing I noticed is that when I open File Explorer and click the Pictures folder under "This PC," it seems to be pointing to the Pictures folder on C drive, not on the D drive like I'd prefer. Can I just click Properties>Location>Move and point it to the D drive? Or are there other implications with those types of folders that appear under This PC by default?

Thanks for the help!
 

Read other answers
RELEVANCY SCORE 66.8

I am using this command:

Code:
mount -u:root -p:[I][password][/I] \\216.17.1.125\srv\www\htdocs g:
at the command line to mount an NFS-enabled network drive from my Windows 7 machine.

I need to know what I need to put in a batch file (which will be put in my Startup folder), so the drive is automatically mounted at login/startup.

I tried just putting the line above in a batch file, but that didn't work.

Thanks for anyone's help.
 

A:How to Create Batch File to Mount Network Drive

Read other 16 answers
RELEVANCY SCORE 66.8

Could somebody help me with a quick batch program to remove, network addresses, gateway, broadcast, etc.? Also include cookies, browser history and that sort of thing but really I want the network code if you could help out with that.

I know I could just use ccleaner but this is something that will be constantly worked on until all the functions I want will be in this one batch file instead of possibly running a couple programs.

Used these two but need to know from the experts!!

ipconfig /release
ipconfig /flushdns

Also when the the wireless card is pulled from the pcmcia slot, like to know what wipes any trace of the hard coded ip, mac ip.
 

A:Create a batch file to remove network activity

any help putting this code together for me. windows 7
 

Read other 1 answers
RELEVANCY SCORE 65.2

Hi guys,
I have a shared folder which contains many folders for many users on
my network and to make users folders recognisable we chose to fix a
folder picture of every folder with the picture of the folder owner.
The problem is that those folders never have a constant folder picture
on all of my network computers as the picture always changes for some
reason, I've tried to set permissions on thumb.db file and also tried
fiddling with desktop.ini file but no use. Any ideas would be much
appreciated. Thanks.
 

A:fix folder picture in a shared folder across network

Read other 10 answers
RELEVANCY SCORE 65.2

Running into a problem and I can't seem to find an answer for it. I have a folder on my Windows 7 64 bit Pro computer. I have set it up with a hidden share ($). The sharing is set up properly with Everyone having access. I have 10 additional computers on the network of different OSs (Vista Business, XP Pro and Windows 7 32 Pro). My problem is that after 6 computers actively access the folder, I can't get any additional computers to access it - gives me an error stating I have reached my max limit. I know Windows 7 Pro should allow 20 users, give or take, but just 6! I found out that each computer that accessed the folder was showing as having 3 sessions inComputer Management. I have no idea how to correct this so I can get others to be able to access this folder at the same time.

Any suggestions? TIA

A:Multiple sessions are created when accessing a shared folder in Win7

Are the shares "shared folder" showing up three times in those computers? Try unsharing "share with nobody" or remove Everyone from the list, for this folder two times and see if that gets rid of the extra shares.

Read other 4 answers
RELEVANCY SCORE 64.8

if i do a clean install of windows xp to replace windows vista, will it create a windows.old folder that has all the stuff i had from before the clean install?
 

A:Will doing a clean install of windows xp create a windows.old folder?

No, you'll need to back everything up first, then restore it after the install.
 

Read other 1 answers
RELEVANCY SCORE 64.8

After using the Deep Clean option of the Advance SystemCare tool, a network pc on a domain will no longer automatically map any of shared drives. I have contacted the support for this tool and they have not replied back...that was 4 months ago. Thank goodness I have only used it on one pc.

Can anyone point me in the right direction to resolve allowing the login script to map drives? This pc a hp compaq dc7900 ultra-slim desktop, is using Windows XP SP3. I have read on the microsoft forums that this error could be the result of windows firewall blocking, but this feature is turned off and all exceptions are handled thru group policy.

thanks!
 

A:login script fails to map shared drives. System error 53 network path not found.

I think the issue could be that the machine does not have "Client for Microsoft Networks" installed on the Ethernet Card. This can be changed by right clicking on the Ethernet Adapter and making sure there is a tick next to this option. You might have to restart your machine for the login script to work.
 

Read other 2 answers
RELEVANCY SCORE 64.4

I have all 4 PC's in the office using Windows 7 Pro. I have one computer that is designated to house my share folder for scanning documents and attaching them to our management system.  We are finding that multiple problems occur - not at once and at
different times .  Sometimes, the document within the shared folder called "IMAGEBATCH" will not delete.  Sometimes that document deletes, and then re-appears within the IMAGEBATCH folder.  Sometimes the document will not
scan through the network to the IMAGEBATCH folder.  Sometimes we get an error saying we "don't have permission to delete this file".  These circumstances occur on all computers, including the computer that houses the original file IMAGEBATCH. 
Sometimes in the day, each computer that is supposedly looking at the same IMAGEBATCH folder see different files.
Restarting the computer clears the problems, but then start right back up at irregular intervals, sometimes in the morning, sometimes in the middle of the day.
I did find a duplicate file named IMAGEBATCH on the "C" drive of that PC, so I deleted that, but the symptoms are still there.  This is the only shared folder in our entire network.  What can I be missing?  I have checked to make
sure it is a share folder, all the permissions are in place, and that we all can see the folder through the network.  What am I missing?  I am the owner and administrato... Read more

Read other answers
RELEVANCY SCORE 64

I am a complete newbie when it comes to batch files and batch file software, so apologies in advance.

I've done some research on Google etc but I seem to just be getting more and more confused trying to use various different scripts and programs and reading different info on various websites.

This is what I need...

I have a folder with around 2000 files in it. I want to be able to copy certain files from this folder (normally around 40) and place them in a brand new folder, I want to be able to do this with nothing more than a txt file that has all the file names I need copying in it with every file name on a separate line.

I receive around 10 new txt files each day so you can imagine how tedious it is searching through 2000 files, picking out the 40 I need, 10 times a day everyday.

To make things even more complicated, the txt files I receive don't always have the correct file names in them, maybe there's a misspelling or a word or two missing for some of the names. That's ok when I'm going through picking out the files I need to copy myself because I can normally tell which file is being requested, but I can't see it being so easy for a program or whatever to do, I'm guessing it'll need to have a search feature where it picks out the most likely file.

I'd like it to be as automated as possible. I receive the txt file, make sure each file name is on a separate line then a program or script or whatever goes out and picks out the files (or most likely files f... Read more

A:search multiple files, copy+paste to new folder (batch file software?)

Contact Rent-A-Coder, Elance, or any of the other programming for hire sites. They could knock this out pretty quickly I would think.

Read other 5 answers
RELEVANCY SCORE 64

On several of the computers at work, I am running out of hard disk space. The culprit seems to be the Temp folders in Local Settings. Some of these computers may have up to 50 user profiles.
I'd like to be able to delete the files in the C:\Documents and Settings\xxx\Local Settings\Temp folder on an XP machine, where xxx is the user name. I was hoping to use wildcards to target the user as all of the users that I am concerned with have a similar beginning (same numbers)to their user name
If possible I'd like to run a batch file on startup or shut down instead of pushing out a script on a routine basis. I was also worried about erroring out if the folder did not exist for a particular user. I believe I would need to unhide the folder as well.

thanks
 

Read other answers
RELEVANCY SCORE 63.6

My question is: Is there a way to send a document or file directly to another computer using the send command. Thanks.
 

A:shared folder on network

I assume you are using Windows..

Yes, right click on a folder you want to share, go to properties, and then the Sharing tab (I don't know if this is different in 98, 'm using XP and It's been about 2 years since I've touched 98)

If you are using linux, I don't know.. you would have to setup samba to share with a windows system, that I do know..
 

Read other 3 answers
RELEVANCY SCORE 63.2

Hi
I was wondering if it is possible to make multiple shared folders to appear under one network drive. Also, other new shared folders should automatically appear under the same network drive.
Any ideas?

A:Multiple shared folders under one network drive?

Not sure I understand. Do you mean like this?

Read other 7 answers