i cant seem to get runas to work in a batch file runas /env /user:domainadminuser cmd
exit it works when manually entered into a command window, just not in a batch script. all that happpens is the command is echoed in a continuous loop.
I have inherited an image (for one of our products) that I can't get the "Runas" process to work.XP, SP3, latest / greatest patches;I have confirmed that I have the Secondary Logon service running; This is what my "run as" is trying to do: We sell kiosk-like systems for hospitals. We ship our systems to boot to a logon screen so our field employees can configure the system and network settings. Once they log out and log back in with the "Customer" account, I want to fire off a startup script that writes sets the registry to auto-logon with that customer account & password.So I wrote three scripts - one that launches my little "Runas" script, the "Runas" script it self, and a final one to clean up the initial "launch" script from the "startup" folder.The script will launch and call my "Runas" Script - and I *know* that the reg import bit works fine if I do it manually, but it hangs up with a "unable to locate runas process".
I am trying to setup a small program so that I can login to client computers across the internet, using winvnc.I am trying to write a batch file that will start the program and then issue a command to the program to tell it what to connect to.My problem is that the program comes up and then the batch file just stops, it does not goto the next line until the program is closed.What do I need to enter to force it to read the next line without having to close the program? simple little batch file will read as follows.
I want to delete all the files in some of my directories before I do backups of my office PCs.To do this I'd like to use a batch file. I've tried one with these commands but it fails.I hope to add other directories once I get this working (ie. Recent).
I am trying to write a batch file that would make a specific program a default over Windows Picture and Fax viewer.Reading on other forums, I've input the following into Notepad:ftype jpegfile="C:Program FilesNeroNero 7Nero PhotoSnapPhotoSnap.exe" "%1" When I right-click on any .jpg file after that, under properties, I see that Nero PhotoSnap is now the default program, but when I open the file it opens in Windows Picture and Fax viewer still.What am I doing wrong? Do I need to add registry changes to complete this process?
If I'm on computer Jack but I want to inititate a batch file I want to run on computer Jill, how do I get the batch file? I'm not talking about a remote desktop or anything, I want to use a command line to make a batch file run on a remote computer.
I have Windows XP SP2 and all the updates. I have recently been fooling around with Batch files. I have been having problems with them not running the command. What happens is I will have a correct command set up in the batch file but when i run it a cmd window opens and the command it is supposed to run continously repeats the command over and over. The command function never actually initiats anything.nothing ever runs from the batch file command. It will just keep repeating for ever and ever untill i close it. Now here is the thing. If i rename the batch file or move it from where i was editing it to another folder it will run just fine. But see the issue is. I dont want have to rename it or move it. I want it to just run like it is supposed to.
whenever i try to open a batch file an ms-dos window opens up and then it disappears in less than a second. No program will run. I've tried to run lqfix.bat and smitRem's runthis.bat. I need to know how to make this stop happening because i need to run smitrem to rid myself of a virus.
Im trying to copy a file from one folder to another but the batch file is not working, it says incorrect syntax. the command line im using is: COPY C:TEST *.* C:BACKDIR Does anyone know why this isnt working?
I've been trying to get something working with batch files and been running into a problem with env variables. First off, I have a batch file which is launched by cruisecontrol and this batch file would set a couple environment variables. then it will call a second batch file which would setup some more environment variables and exit.
I have a batch file (used to autoexec.bat in earlier Wins) that cleans temporary folders and gets rid of a couple of files that Paradox creates.I've tried the run command in Win.ini - any other ideas ?
I'm trying to write a batch file that will copy files from a folder on the desktop to various files on the C drive. From what I understand it should be like this: copy c:documents and settings\%userprofile%desktopinstallfilename.txt c:windowsfilename.txt with %userprofile% in place of the actual user profile name because it will be different each time I run this batch file.This, however, is not working.
I'm running Win XP Pro SP 3, I have a file that I periodically copy to several different computers on a LAN. The exact destinations of the file change occasionally and I want to minimize the amount of maintenance involved when there is a change. In the folder containing the file I have a shortcut to each of the destination drives. When one of the destination folders changes I update the shortcut in that folder. If I drag the file to each of the shortcuts using the right mouse button one of the options is to copy the file to the target of the shortcut, so one way to copy the file is to manually drag it to each shortcut. Is it possible to achieve similar functionality with a batch file? It is easy enough to write a batch file that copies the files to each destination by coding the destinations into the batch file but is it possible to use a batch file to copy the file to the target of each shortcut? I suspect that parsing the .lnk files is complex but I don't know if there is another way to do this.
I need to create a batch file to resolve a backup issue I'm having. I need a batch file to run before and after backup to correct the issue between Veritas and Backup Exec.http://seer.support.veritas.com/docs/275013.htm
Is it possible to make a batch file to modify the attributes to files within a folder without typing out every single file in the batch file? (Needed for recovery console use).
I was wondering if you gurus can give me some direction.I run a Specials Menu on a large LCD TV at a restaurant using powerpoint. There are two specials files (lunch.pps and dinner.pps)When this system reboots, i want a batch file to determine which powerpoint file to open based on what time it is.ON BOOTUP: For instance, if it's anywhere between 11am and 3pm, open the lunch file. If its any other time, run the dinner.pps file. Make sense?
Im already running a scheduled tasks application that shuts down one and starts up the other based on what time. This works very well. Problem is, i frequently Remote Desktop into this machine and make changes. Once those changes are made, i have to reboot the system. I then want this batch file to start the appropriate presentation since the scheduled task application only works when it sees 11am or 3pm (as in the example above)I figured since you can determine time and date within a batch file, can't you do an if /then/else type script within a batch? (if its *this time* then load THIS application)
i would like to know if there's a good place to learn about makingbatch file because i don't know about the syntax. I only program in c,delphi and Java.What i would like to know is if it's possible to do a "while", "if"(Conditions) and "read/write" text files so i can do a several testlike ping few computer in my buisness and be sure that they are wellconnected by creating a file that after it read the name of the computer it will ping and it pings it, write a file with the name of this computer with a "ok" next to it if it worked and "Not connected" if it can't ping it!
I have a batch file which copies key folders and files between hard disks - It would seem that although it will accept only truncated folder and file names (e.g. progra~1) for the source, sub folder and file names are written to the target drive full length. Am I right in thinking that source names have to be written in the truncated form (after all it is, basically a DOS command)? if not how can this be done?
I'm searching for a good solution of archiving scanned documents. The problem: Recently we bought a new copy-machine from toshiba. It includes the feature of scanning a bunch of documents on its own harddisk. To keep up a structure (Law-firm) we give the files structured names: {casenumber}{client}{typeofdoc}{dateofdoc}.pdf
So, by now we created a structured list of files in the scan-folder of the machine. The next step is to move the files into subfolders on a different pc. These subfolders have 6 digits, simply the case numbers. It should be very easy for a program to move these files paying attention to the case number and sorting them into the right case folders..................
I am wondering if there is a way to change the date last modified through command line. The reason for this is because I want to update the date last modifed as part of a backup solution.
To rename a group of files or folders in WinXP, open the explorer folder that contains the files and do the following: (be careful not to include any critical windows system files or folders when applying this technique. back up with system restore first if you're not sure. also, it only makes sense to apply it to files of the same type.) 1. Highlight the files and/or folders to be renamed (remember to hold down the CTRL key to select non-adjacent files); or hold CTRL-A to select all the files and folders in a given folder 2. Let the mouse hover over the file that you wish to be the first in the series
none of the commands i use in command prompt work and i get this wierd error when i play one of my games (counter strike) saying that there is something wrong with my half life launcher when there isnt. the game works fine but as soon as i close the error the game closes. but more importantly ive been told that i have system files missing? if this is the case how do i get them back?
i installed spy bot search and destroy and on reboot it seems that the program has decided not to let me run any exe files/applications! im running xp and i cant find how to make the exe files work again. the error message i get when clicking anything is "this file does not have a program assosiated with it for performing this action.Create an association in the folder option control panel"
I am having 2 problems. My boyfriend changed a few file types and named a program to open them. (One was Sims2 Pack files) now the files don't work. How does one change them back, when one doesn't know what opened them in the first place? Also I have some DOOZIES of virus/and or/spystuff. (One of the things is a red ball with an x in it, that sits in my systray. I found out that it is impossible to clean (ie format) my C: partition.
I upgrade to WMP 10 and all my existing mpeg files don't work. I just get sound and a black screen. I see quite a few others posting similar problems. It now appears that my DVD Encoders are no longer compatible with WMP 10. Hmmm they were fine with WMP9...what gives? now it appears I must PURCHASE a new set of encoders, conveniently located through the WMP10 "Plug-Ins" drop down menu. And don't think you can go back to WMP9, it also seems that my system restore point created before the upgrade mysteriously fails to work.
I have had a slightly annoying problem with Outlook Express which I use as my default mail client. Everything seems to work fine apart from when I try to open PDF files directly from OE, it tries to open them with notepad, which obviously doesn't work. I can save them anywhere else on my computer, my documents for example, and opening them from there works fine. I have the latest Adobe Reader. I can't find anyway to tell OE to open these attachments using Adobe Reader.
I am running a Windows XP SP2 with 768 Ram and a 2.66 GHz Pentium 4 CPU. I recently purchased a 20GB Maxtor OneTouch II USB hard drive and it came with Retrospect HD to back up my comptuer. The program will not do anyhting if i click setup so I can set it up to back up my computer. It also says ''updating status'' the whole time. Ihave left it at this screen for a long time and still nothing happened. I downloaded and installed the updrade for this from Maxtor's website, and it is still doign the same thing. Any suggestions on how to get this prgram working so I can back-up my computer?
If I use this to back-up my computer, and I use its restore feature, will I get problems on my computer that I currently have? (the main problem is with Windows Firewall, becuase i cannot enable it. My ocmptuer got infected a couple months ago and ever since is says it is controlled by Group Policy. For more detals on my problem click here I am using ZoneAlarm, but it will not work with my home network for sharing files and printers even though I have the IP address unblocked).
Going crazy trying to back up my Quicken 2004 files to CD-RW. The instructions for doing this from Intuit do not work. I have the latest patch which is release3. It claims that the built in CD burner program in XP will open if I click on file then backup. Nothing happens. Where is the built in Cd burner program? Dell was no help as was Quicken.
i have window xp working fine but i have problem that i cant see the hiddien files that i have made that no one can have acess to them but now when i check the option that show hidden file but when i exit the folder option it remain same file remain hidden. if some one know is it virus or some other problem.
Last night XP was just fine,and this morning at first boot up, the typical files appeared when there is a problem...win.com, DBluff,Himem and etc were either missing or corrupted....So no way to restore it, the recovery disk couldn't,so I had to reinstall it on another partition.I wanted to copy my AOL program over to the new partition from the C drive and its just not there...gone. How is this possible?