Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How do I make a batch file "invisible"? (Fixed)  (Read 2921 times)

0 Members and 1 Guest are viewing this topic.

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
How do I make a batch file "invisible"? (Fixed)
« on: November 27, 2009, 10:25:14 pm »
Basically, is there a way to run a batch file that runs continuously in the background start without having the console window open? My roomate's teenage kids keep killing my UPS control batch file and no matter how many times I tell them not to, they do. Its either make it invisible, or have two batch files running that detect if the other goes diwn and reruns it, or kick the kids off of the fileserver/entertainment center PC...
Also, it has to be able to run at boot and be ready to run tasks, so it can't be relegated to another user desktop.
Any ideas?


Edit: I found a method that might work, but havent tested it yet:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Batch Files\syncfiles.bat" & Chr(34), 0
Set WshShell = Nothing

Put into a text.VBS type file.

Anyone ever use this? Is the process name still visible in taskmanager?



Edit2: OK, nevermind, the script above works just fine. Maybe someone else will find it useful.
« Last Edit: November 27, 2009, 11:04:25 pm by protokatie »
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #1 on: December 01, 2009, 02:57:09 am »
What would you have a batch file for UPS for?
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #2 on: December 01, 2009, 03:52:18 am »
What would you have a batch file for UPS for?

I have a UPS that has no communication to the computer, so I set up the batch file to check every 4 seconds for the existence of a file on another computer not UPS protected. So if that other computer (my magic jack compy) went down (power outage) the fileserver would detect this and start a shutdown sequence (using startrek sounds) and after 5 minutes of the file still not being in existence it finally shuts down. The 5 minutes helps prevent the fileserver from shutting down from things like resetting the router, etc.

Does that answer your question?

Also, I added a tonne of stuff to the batch file to control all sorts of stuff remotely. I hope I don't end up with M$ level feature creep...
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #3 on: December 01, 2009, 07:59:26 pm »
Sorry Katie, Im a little late, but I was going to suggest you use the Invisible Batch File Paint.

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #4 on: December 02, 2009, 01:40:30 am »
The last time I bought invisible paint, it was also marketed as "light as air" and "oderless". Either I spilled it all when opening it, or it didn't do a good job. Either way I could not tell.


@ Ummon, I did finally get your post, it was just a bit too convoluted from the "What would you have UPS do for you" slogon that I didn't catch it right away.
« Last Edit: December 02, 2009, 01:53:32 am by protokatie »
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #5 on: December 03, 2009, 02:17:29 am »
The last time I bought invisible paint, it was also marketed as "light as air" and "oderless". Either I spilled it all when opening it, or it didn't do a good job. Either way I could not tell.


@ Ummon, I did finally get your post, it was just a bit too convoluted from the "What would you have UPS do for you" slogon that I didn't catch it right away.

.....um.....Right. Yeah. I'm so clever.

No, I was...really asking what you answered. Ah sea, yeas.

I don't have mine hooked up because I don't want them to shut down automatically....although, I do sometimes leave it on all day and go places. I hadn't really thought about that. But I leave it with stuff up. Hmmm.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

protokatie

  • I DO try to be insulting and horrible to my fellow Terran
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1396
  • Last login:March 27, 2012, 09:36:43 pm
  • Is anyone here a member of team retard?
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #6 on: December 03, 2009, 02:41:34 am »
The last time I bought invisible paint, it was also marketed as "light as air" and "oderless". Either I spilled it all when opening it, or it didn't do a good job. Either way I could not tell.


@ Ummon, I did finally get your post, it was just a bit too convoluted from the "What would you have UPS do for you" slogon that I didn't catch it right away.

.....um.....Right. Yeah. I'm so clever.

No, I was...really asking what you answered. Ah sea, yeas.

I don't have mine hooked up because I don't want them to shut down automatically....although, I do sometimes leave it on all day and go places. I hadn't really thought about that. But I leave it with stuff up. Hmmm.

Out of curiosity, does the UPS software that comes with your UPS allow for hibernate mode? That seems like it would be the best compromise as it would protect data integrity on the disks as well as preserve whatever you were working on. The shutdown.exe command I use in my batch file supports hibernate, too bad the fileserver it is protecting doesn't.
--- Yes I AM doing this on purpose, and yes I DO realize it is pissing you off.

---If my computers were cats, my place would look like an old widows house, with half of the cats having obvious health problems

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How do I make a batch file "invisible"? (Fixed)
« Reply #7 on: December 05, 2009, 01:56:25 pm »
I don't even run it. I use mine for the battery and surge protection.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.