1
vote
1answer
160 views

windows xp - how to add a ipp printer by batch/vbs

I need to deploy printers using IPP in the logon script (batch/vbs). I found the following script to do this: rundll32 printui.dll,PrintUIEntry /if /q /b "r011-printer01 " /f ...
0
votes
1answer
211 views

windows xp batch - check if printer exists

I am looking for a batch-function to check if a printer does already exist on a windows xp system. I made up the following script: set PRINTEREXISTS=0 For /F "Tokens=8 delims=\" %%I IN ('reg query ...
0
votes
0answers
31 views

windows xp - batch remove IPP printer

How can I remove a printer using IPP (example URI: http://10.0.0.1:631/printers/r123-printer01) from windows batch? There should probably be a way using rundll32 printui.dll,PrintUIEntry, but I ...
0
votes
0answers
117 views

Registry Export Using Script Run from CD Fails - Access Denied

I've written some scripts and .bat files to configure XP machines and I have created a CD with all these scripts on and execute them through a single setup.bat file which is also on the CD. One of ...
1
vote
1answer
1k views

check for ping reply - unexpected result

I am running this within windows xp batch file: ping -n 3 10.1.1.2 >nul: 2>nul: if %errorlevel%==0 ( echo ping reply arrived ) else ( echo no ping reply. ) sometime, it seems ...
0
votes
3answers
3k views

Deleting the oldest file in a folder with batch scripting

I have to write a batch file to delete the oldest file in a folder, but i don't know how to get the name of the oldest file. I can sort files with DIR, DIR /B /O:D /T:C but this is a list and i need ...
0
votes
2answers
153 views

.bat file question

I'm working on Windows XP. I need the batch file to do the following: Create a directory $DOMAINNAME on D:/Webserver/domains/%DOMAINNAME/www/ Open the file - ...
0
votes
1answer
200 views

Help for batch file

I have to create a Windows XP batch file to copy files from a series of computers into a directory on another machine. I've a text file with our internal LAN IPs like this: 171.10.2.2 171.10.3.2 ...
1
vote
4answers
1k views

Batch file to change all network shares on computer

I need to change all shares of //foo to //bar in a batch file. Say i have R: //foo/foo and Z: //foo/bar I need to have a batch script that makes them R: //bar/foo and Z: //bar/bar Anyone have any ...
0
votes
2answers
2k views

Create a batch file that deletes all user data folders except for All Users and Default User?

I am using Windows XP and would like to create a batch file that deletes all user data folders except for All Users and Default User. How can I achieve this?