Over 1 million tech questions and answers.

How to create 100 print queues via script/batch file ??

Q: How to create 100 print queues via script/batch file ??

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 200
Preferred Solution: How to create 100 print queues via script/batch file ??

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 91.2

From my experience on 2 Win 10 machines, beware of creating a pdf using Nitro Reader 3. On both machines the print function hung, and all print queues got stuck. Even a restart did not fix the problem (because, I presume, the issue was in the print queues themselves). The only way I found to resolve the issue was with a System Restore..... and this option is apparently turned OFF by default in Win 10.

For now, I suggest uninstalling Nitro Reader 3, and using the built in Microsoft Print to PDF instead. (Also turn on System Restore!) For reading PDFs, if, like me, you don't like Adobe Reader, Edge works fine!

Has anyone else experienced this problem?

A:Nitro Reader 3 Create PDF locks print queues.

Same experience here. Miss nitro.

Read other 17 answers
RELEVANCY SCORE 90

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

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 75.6

Create a batch script for Oracle ODBC connection
 

Read other answers
RELEVANCY SCORE 74.8

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 72.4

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 70

Occasionally, a print job gets stuck on our NT server when printing to a printer installed and connected to it. If you open up Printers and double-click on the printer, the offending print job will be shown at the top along with any other jobs that are stuck underneath it.

The problem is that sometimes deleting the job doesn't work and nor does 'purge print documents' regardless of trying it on the PC that sent the document or the server.

One way of clearing things is to reboot the server, but surely there is another way?

Any ideas?
 

A:Purging print queues

Read other 6 answers
RELEVANCY SCORE 70

I maintain a printer with 6 password protected accounts and one account that's not PW protected. It has only one print Que. IT would be nice if each user had their own Que. Is this possible? How?

Bill

A:I needed more than one print queues

First give the printer a static IP address or reserve one in your DHCP pool.
Add a printer, local printer, create a new standard TCP/IP port and enter the IP address of the printer. Complete the installation of your printer driver and print a test page. Right click the new printer installation and select printing prefernces and make the approriate selections. Install a second printer but instead of adding a second port, attach it to the port created above and repeat process.

source

Read other 5 answers
RELEVANCY SCORE 69.2

How can I do a batch file that automate the archival storage operation with a batch file?

thank you,

[email protected]
 

Read other answers
RELEVANCY SCORE 69.2

Me and my friends are constantly plagued by Local Area Network connection issues when trying to connect to each other for streaming, game, etc. I was wondering how to create a file (like a batch file or script) that would execute the following commands to make the process quicker and easier to set computers up for a LAN.

- disable windows firewall
- disable/enable network adapters
- end unneeded processes such as ituneshelper.exe, ApplemMobileDeviceService.exe, etc.
- set computer's IP address to a specific static one (i.e. 192.168.1.10) as well as dns servers to particular settings

The whole point is to ease the process of connecting several computers on short notice in a short amount of time. I just need help learning how to write such a script or batch file or something that can execute all these things.

Thank you in advance for your help

A:batch file/script help!

a lot of those would probably be done via netsh
netsh /? for help
(I haven't played with this much, but I'm sure it's not too hard to figure out, you have to play with it a lot though)
for example http://social.technet.microsoft.com/...9-df9eb5700561 for windows firewall

tskill for ending processes

Read other 9 answers
RELEVANCY SCORE 69.2

Well, I'm sitting here and can't this to work right.
Here's what I want to do:
- Login to a ftp server
- Download qconsole.log from demott
- Upload the same file to another folder at the remote server. (/logs)

Then the next thing:

I want then to upload this file from /logs to another FTP server, could anyone give me an example how to do that? Anyway here's my code:

Script.bat
Code:
FTP.EXE -s:SCRIPT.TXT

Script.txt:
Code:
open **.***.**.*** [COLOR=Red](IP)[/COLOR]
******** [COLOR=Red](USERNAME)[/COLOR]
******** [COLOR=Red](PASSWORD)[/COLOR]
lcd c:\logs
quote PASV
cd /demott
quote PASV
get qconsole.log
cd /demott/logs
quote PASV
put qconsole.log

 

A:Help with a Batch file script (FTP)

Hi mariusk,

Welcome to TSG !

You may adapt your script this way :
Code:
[SIZE=2]
open **.***.**.*** (IP)
******** (USERNAME)
******** (PASSWORD)
lcd c:\logs
quote PASV
cd /demott
quote PASV
get qconsole.log
cd /demott/logs
quote PASV
put qconsole.log
[COLOR=Red]close
open **.***.**.*** (NEW IP)
******** (USERNAME)
******** (PASSWORD)
lcd c:\logs
quote PASV
cd /logs
quote PASV
put qconsole.log
quit[/COLOR][/SIZE]

 

Read other 2 answers
RELEVANCY SCORE 69.2

We can print to network queues from every application in Windows 8.1 except the inbuilt Reader Modern App. It will print to the local XPS Document writer. The network print queues show in the list of available printers but when we try to print the message
"There was a problem connecting to the printer. Make sure it is connected and try again". The same pdf will print fine from Acrobat Reader. This is for any pdf I try. I wondered if this had something to do with the Reader App not understanding network
print queues that don't connect to a specific device, just to a queue manager.

Read other answers
RELEVANCY SCORE 69.2

Dear All,

I need to create a batch file which can read the size of file(e.g. 1kb, 2kb...etc) from specific folder and detect 0kb file and convert it to text file (showing 0kb file size) with alarm.

I am not really sure how to write command for this batch file. Please help :-(
 

A:How to create a batch file to read size of file on specific folder path

Read other 10 answers
RELEVANCY SCORE 69.2

I need to write a batch file or vb script that will take the following share names (which are stored in a .csv Excel file) and then run the following command:

NET USE \\[entry from 1.csv file]

The object is to have this command establish a NET USE connection to each share name from the 1.csv file.
These are the first five entries from the 1.csv file:
\\s0002234\c$
\\s002631\c$
\\gb2130\c$
\\s00460\c$
\\gb2143\c$
\\gb3205\c$

Can you please write a command script that will do this for me? My OS is Windows XP Service Pack 2.
Contact me with any further questions.
Dennis
[email protected]
 

Read other answers
RELEVANCY SCORE 69.2

Backround: I am a college student majoring in Information Technology with a focus in programming. I also work for my school's IT department as an IT associate. I have 4 years of experience dealing with hardware and software and have studied Net+ and A+ certification books.

Problem: At my school my boss, the IT Director, wants to schedule a batch file to run weekly that will delete items from the desktop and folders of the "Student" account on all of the student computers. He asked us associates to go around to every student computer with this batch file on a thumb drive and schedule the task. Seems simple enough right? The problem is we are talking upwards of 300 computers throughout the campus. I proposed a solution to him where we would use a script that would essentially consult a text document with the names of all of the student computers in it, then run the file.

I am 99% this can be done, I just have a very small amount of programming experience. If anyone has an answer or knows of an easier way to accomplish this I appreciate it. Thanks in advance.

EDIT: All student workstations are running Windows XP SP2
 

A:VB Script to Run a Batch File and Utilize a Text File

Read other 16 answers
RELEVANCY SCORE 69.2

How to create a batch file that will move files based on the file type?

My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...

A:How to create a batch file that will move files based on the file type

Download XXCopy
XXCOPY, A Versatile File Management Utility --- Boldly Extended Xcopy
This is a vastly improved and extended version of DOS XCopy
Sorry, can't remember the syntax, but its quite simple if you read the manuel carefully :-)
Put the command line in a .bat file and it will run

Read other 4 answers
RELEVANCY SCORE 68.8

At work i use 2 different PDF viewing software. One is Adobe for editing and the other is Foxit for quick viewing. They have their pros and cons and so I use them interchangeably.

For some work I will use Foxit for several hours at a time and only open something in Adobe on an as needed basis using the right click "open with" context. The opposite is true, for some work I use Adobe for hours and then use Foxit as needed with "open with" context.

I want a registry file or some application that will enable me to simply double click on it and KNOW that my file association for PDF is now Foxit (or Adobe depending on what batch or registry file I double click on).

I see there is "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ Explorer\FileExts\.pdf" which changes when I edit the file association in control panel. It does update, but I can't manually change the "UserChoice" Progid item. It changes only through file association in control panel.

I realize there are some in HKEY_CLASSES_ROOT but they dont update when i update it in file association in Control panel.

I don't know what to do or where else to look. It is tedious to have to go to the control panel -> file association manually.

Can someone help?

A:PDF file association REG or Batch Script

As for Foxit file association, that is easy.
Code:
"PathTo\Foxit Reader.exe" -Register
should do the trick.

But with Adobe Reader that is more complicated.
You can run repair function of it's MSI package with parameters /fum (f -to allow further parameters, u - rewrites user specific registry entries, m - rewrites other registry entries).

Or you can use registry monitoring software (some even in trial mode) like Total Uninstall to see what values are changed when you switch between Abode and Foxit. Once you will get these changes you can create two reg files for both cases. Or just one for Adobe and use code above for Foxit

Read other 1 answers
RELEVANCY SCORE 68.4

I want to know more about creating a batch file. From which websites i can read about the batch file creating.

if possible give me a link.
 

A:how to create a batch file

Rob's Website is one of my favorites for reference.
http://www.robvanderwoude.com/
 

Read other 1 answers
RELEVANCY SCORE 68.4

Hi Windows Expert,

May i know how to write a batch file that will copy a folder from local computer to a network shared folder and it will overwrite the existing folder in the network shared folder everyday?

Thanks.

Regards,

Read other answers
RELEVANCY SCORE 68.4

Hi, i have a desktop computer and a laptop, my computer is on domain and laptop is not on domain,
now i need to access a folder on my desktop computer from my laptop , so if anyone would like to work in that folder they can click and open only that folder, for that i would like to create a batch file and i never did it, so please help me to create one, i will really appreciate it.
 

Read other answers
RELEVANCY SCORE 68

I tried looking a little on google, and couldnt find much. I need to make a batch file to add dns suffixs to local area connection.

i have a script that i tested but it didn't work, because i beleive it was for just the 2 local dns's and not for the dns suffixes.

Any help is a appreciated.

Update i found a script here. That works for now. Just need to figure out how to set it so it manually checks those 2 boxes.

On Error Resume Next

strComputer = "."
arrDNSDomainSuffixSearchOrder = Array("dns1.com", "dns2.com", "dns3.com")

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNicConf = objWMIService.Get("Win32_NetworkAdapterConfiguration")

WScript.Echo VbCrLf & "DNS Host Name: " & strDNSHostName & VbCrLf & _
" Attempting to enable DNS"
intEnableDNS = objNicConf.EnableDNS(strDNSHostName, strDNSDomain, _
arrDNSServerSearchOrder, arrDNSDomainSuffixSearchOrder)
If intEnableDNS = 0 Then
WScript.Echo " Successfully enabled DNS."
ElseIf intEnableDNS = 1 Then
WScript.Echo " Successfully enabled DNS." & VbCrLf & " Must reboot."
Else
WScript.Echo " Unable to enable DNS."
End If

WScript.Echo VbCrLf & String(80,"-")

Set colNicConfigs = objWMIService.ExecQuery _ ... Read more

Read other answers
RELEVANCY SCORE 68

I need to script/batch a way of changing file permissions on a whole directory tree. Any ideas on how to do this?
 

Read other answers
RELEVANCY SCORE 68

For starters i would like to apologize about my bad English, i don't use it that frequently so might have a hard time to express myself good enough for you to understand what im trying to do.

I have a .csv file where A1 and B1 will be having constant values, the values are A1 = Name B1 = Order number.

Im trying to figure out if a script could help me to populate the cells beneath A1 and B1?

If it could ask me for name: and then i would have to type in a name that would populate A2, A3, etc. Perhaps it could also ask me for the amount? so if i put in the name "Adapter" and then it asks me for amount where i type in 10 it would put the word "Adapter" in A2-A11

I would also like it to ask me for an order number that would be put into A2-A11 in this case.

The amount that i would like to put in will vary from time to time.

IThis is what i would like the CSV file to look like after inserting the name "Adapter TKS-B" and the amount: 29 along with the order number: 123456. Hopefully you will understand how i want to populate the .csv file.

Is this possible? Again im terribly sorry for my bad English.

Thanks in advance
 

Read other answers
RELEVANCY SCORE 68

I am making a batch file that moves an .exe file. whenever it moves the file the extension(.exe) gets removed and the file type is just "file". this doesnt happen with regular files like .txt .jpg ....
 

A:Solved: Batch script help with file extensions

Read other 7 answers
RELEVANCY SCORE 68

Assume I have a csv file (eg config.csv) set out as follows:

A,B,C
1,abc,def
2,ghi,jkl

I would like to be able to pass a batch script a parameter that uniquely identifies a line (record) in the csv file, eg:

script.cmd 2

and have the script then:

- read the line of the csv file that corresponds to the parameter given (ie 2,ghi,jkl) and
- set variables by parsing this line, eg:

set B=ghi
set C=jkl

I am very new to any form of coding, including batch scripting. I've read the help on FOR statements and searched the net and this forum but am hoping someone might be able to point me in the right direction, help me get started or provide a solution.

Thanks.
 

A:Parse csv file to set batch script variables

Read other 7 answers
RELEVANCY SCORE 68

So I have folders full of tv shows and a program that gives them all matching thumbnails but it saves them as .tbn files and my media server wants .jpg. So i wrote this script to run from my vidoes folder which contains all my tv shows.

Code:
@for /r %%i in (*.tbn) do ren "%%~fi" "%%~ni.jpg"
But now I am using xbmc as well and it looks for many thumbnails as .tbn so I want to change the script to rename any .tbn that is not named season00.tbn (00 being any two digits). If anyone could help me code this it would be much appreciated I tried for hours cause I know it should be a very simple if statement added in there but everything I try either stops renaming anything or still renames everything.
 

A:Solved: Help with a File rename Batch script!

Read other 8 answers
RELEVANCY SCORE 68

I need script to change my WiFi IP to specific IP as well as DNS and then change back to DHCP.
I need to work on both College and Home network. So I am looking for script which changes WiFi IP.

I have got two files. But I am not sure whether it will work. Somebody help me in verifying the script. If it appears to be wrong, then please provide the correct script.

College IP script: 
@ECHO OFF
netsh interface ipv4 set address name="Wi-Fi" source=static addr=172.16.20.131 mask=255.255.240.0 gateway=172.16.16.2
netsh interface ipv4 set dns name="Wi-Fi" source=static addr=172.16.16.2
netsh interface ipv4 add dns name="Wi-Fi" addr=8.8.8.8 index=2
:EOF

Home IP script:
@ECHO OFF
netsh interface ipv4 set address name="Wi-Fi" source=dhcp
netsh interface ipv4 set dns name="Wi-Fi" source=dhcp
ipconfig /renew
:EOF

Please help me in verifying and identifying the working script to switch between college and home network IP.
Thanks in advance. Looking for a positive reply in soon.

Read other answers
RELEVANCY SCORE 67.6

Hope this is the correct sub forum for this..

Often use a variety of command line functions e.g. winver / netplwiz etc etc

Is there a way of creating a batchfile to include multiple commands with a number option to select...would be so handy

i.e. 1 Netplwiz
2 Winver
3 ???
Thanks

Read other answers
RELEVANCY SCORE 67.6

I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic theme.


My question is:

How do i write a simple windows batch file that when run by doubleclicking an icon will:

1) switch the theme to windows classic
2) run cubase.exe
3) switch back to windows aero theme when i exit cubase.


I appreciate you considering my query.

All the best.

Andy

A:Is it possible to create a windows batch file to do this?

Something like this should do
Code:
"%windir%\Resources\Ease of Access Themes\classic.theme"
"C:\location\cubase.exe"
tasklist | find "cubase.exe"
if errorlevel 1 "%windir%\Resources\Themes\aero.theme"
pause
Please change cubase filename and location for appropriate ones - I do not have that program.
Delete "pause" if you want cmd window to close upon completion too.

Personalization window will pop up, but that is a regular thing: it always pops up if you start theme file in any way.

Read other 4 answers
RELEVANCY SCORE 67.6

I want to copy files from a folder to another folder named with system date. Actually, I want to such a batch file which gets executed when I click a button on desktop and complete the above task. Also, once created can I edit it, because opening .bat file tells that it is not a valid win32 file.

Read other answers
RELEVANCY SCORE 67.6

Just wondering if anyone could help me create this batch file. Have been trying for a while and is starting to really frustrate me. Any help would be greatly appreciated! Thanks.

? Create a batch file called myBackup.bat.
? It will backup all contents of a folder called 'files' to a folder called 'filesBackup'.
? If 'filesBackup' doesn't exist, it should create it.
? If 'filesBackup' is empty it should copy all files including subdirectories.
? If 'filesBackup' is not empty it should copy only newer files, without prompting.
? Don't use absolute paths, only relative folder names.
? You will need to use command line help to find the best command to use and what parameters to use. Copy command won't work, you will need a command that does eXtra.
? Paste the text of the batch file as well as a screen shot into your document.

A:Create Backup batch file, please help!!

Is this for a school assignment?

Why do you want to use relative directory? Why not use env variables?

Read other 2 answers
RELEVANCY SCORE 67.6

I want to make a batch file to run sfc /scannow & then restart the computer.
I use XP Home SP2.

I made one with sfc /scannow & shutdown -r but it restarts after sfc /scannow is just starting to run.

I need sfc /scannow to finish & then for the restart command to kick in.
The purpose is to let sfc /scannow to run & the computer to restart & run Error Checking & a boot time Avast scan.

I can set up the Avast & Error checking seperate from the .bat file.
They will run when the computer restarts.
Any help will be appreciated.
Thank you.

A:How To Create A Batch File With 2 Commands

Here is a web site - Making Batch Fileshttp://www.tnd.com/camosun/elex130/dosbatchtutor1.htmlHSould help with your problem.cya l8rThorXP

Read other 10 answers
RELEVANCY SCORE 67.6
RELEVANCY SCORE 67.6

Hi, I need to create a batch file or even VB script that will put ~15 text files into separate strings (each text file contains 1 line of text) and then will compare these 15 strings and group them on based on identical strings. Is there any way this is possible? This is what I have got so far...I'm not sure if I am on the right track.
Code:
@Echo Off
SetLocal EnableDelayedExpansion
Set n=
Set InputFile=File1.txt
For /F "tokens=*" %%I IN (%InputFile%) DO (
Set /a n+=1
Set v!n!=%%I
)
EndLocal

 

A:Create Batch For File Comparison

Read other 6 answers
RELEVANCY SCORE 67.2

Hi I am looking powershel script to ran batch file for mutiple machines sceanrio is i have a batchfile and needs to ran on mutiple machines kindly help me how to run bat file in mutiple machines

Read other answers
RELEVANCY SCORE 67.2

Hi all,

I need to write 1 batch script to move the files from FTP location to my remote server location. seems both are in same network.

but when i give ftp command from remote server where i need to get files, it connected to the FTP server and shows all the files of ftp server while doing DIR.

pls help me to write the script as i m new to batch script. i need to call this script thro informatica command task. so that i can use those file to load my warehouse.

Its an urgent issue.
thanks in advance

Read other answers
RELEVANCY SCORE 67.2

Hi all,
I am new to Scripting so i need you people help.
I need a batch file to stop a service in services.msc and replace the .afxm file in c directory with with latest .afxm file
and start the service which stopped at first.
Regards,
Saravanan 

Read other answers
RELEVANCY SCORE 66.8

Hello,
I tried to create a screen saver batch file, but when I execute it, it always open  the photo screensaver window.

what am I doing wrong, and how to corrected ? this is my script:
@echo off
start c:\Windows\System32\photoscreensaver.scr
start c:\Pictures
also please I need to know how to configure it to open the logo screen on the mouse movement.
I really appreciate  your help.

Thanks

Read other answers
RELEVANCY SCORE 66.8

Does anyone know how I would write a batch file to pick at random one name from a list?

We want to be able to randomly choose a place to eat every Friday at work!

I have found some batch files written that are supposed to do this, but I cannot get them to work.

Thanks!
 

A:How do I create a Randomly Picking Batch File?

Why do it with a batch file? That's just masochistic.
Use Excel instead.. Any scientific calculator will do too. Even dice would be easier.
 

Read other 4 answers
RELEVANCY SCORE 66.8

What I want to do is a batch file or program so that when you open it, it mimics key presses Alt+Tab. Or at least tell me where's the Flip2D program location

I need it because I want my Synaptics touchpad to open it (this program) when a I press the upper left corner.

Thanks!

A:Create a batch file that mimics Alt+Tab key presses

Hello Mathius,

Here's an exe file I whipped up that acts a Flip2D shortcut that may work for you for this.

Flip 2D Shortcut Program

Hope this helps,
Shawn

Read other 1 answers
RELEVANCY SCORE 66.8

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 66.8

I need to copy several files from desktop to mapped network drive so here is simple bat file i wrote

copy %USERPROFILE%\Desktop\1.bd W:\backup\1.db

but it doesn't work... syntax error any help?



EDIT: ok error myself... it should be copy "%USERPROFILE%\Desktop\1.bd" W:\backup\1.db

Read other answers
RELEVANCY SCORE 66.8

Hi there, In XP I used 2 batch files to create a popup reminder in a cmd window. I don't want to use a program like task manager as it requires to much input for the type of reminder I want. With these batch files I would run one of them, enter a time, enter a description and that was it. A cmd window would popup at the set time and show me whatever I had typed in the description. Quick and easy, no mucking around. I have tried to use them on W7 but they don't seem to work. Can someone please tell me if I can do this on W7 and how? Here are the details of the 2 batch files used in XP:

They both go in C:\Windows. Run setalarm.bat to create the reminder. Type time in 00:00 format and press Enter. Type description and press Enter.

1: setalarm.bat

@ECHO OFF
SETLOCAL
SET _t=%1
SET _d=%2 %3 %4 %5
SET _x=%_d: =%
IF NOT DEFINED _t (SET /P _t=Enter the time: )
IF NOT DEFINED _x (SET /p _d=Enter the description: )
IF NOT DEFINED _d (SET /p _d=Enter the description: )
ECHO. reminder at %_t% to %_d%
at \\%COMPUTERNAME% %_t% /interactive cmd /c showalarm "%_d%"

2: showalarm.bat

@echo off
cls
echo.
echo.
echo %1
echo.
echo.
pause

Cheers.

A:create a popup reminder using batch file

Oh woe is me. Can nobody help me with this?

Read other 9 answers