topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 12:39 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - usasma [ switch to compact view ]

Pages: [1]
1
Post New Requests Here / Re: Idea: Run once and then delete
« on: May 16, 2007, 07:24 AM »
I'm considering one of these solutions:
1)  Adding a path statement to the batch file that includes all possible drive letters that the flash drive could be assigned, or
2)  Copying the whole thing to the root/system root and running it from there via a batch file.  I'd have to add something to remove the files from the root/system root when it rebooted tho'

Any comments/suggestions?

2
Post New Requests Here / Re: Idea: Run once and then delete
« on: May 14, 2007, 08:07 AM »
I tried it - still not working. 

The first line of the batch file works just fine when executing it.  I still get an error when trying to run it in a cmd window - but we won't be using it that way anyway :)

For the second line, I tried the C:\Docume~1\AllUse~1 path without success.  I tried the copy command (rather than the xcopy) - I get a "The system cannot find the file specified" error.  When I specify the path to the USB drive with the files, this line works just fine (G:\) and it even removes the proxy when all is done.

The third line doesn't delete the ProxyOff.reg - but that's a minor issue and it won't interfere with the running of the tool.

3
Post New Requests Here / Re: Idea: Run once and then delete
« on: May 14, 2007, 07:23 AM »
Why am I using the -v switch?  I copied it from another file while trying to make this thing work.  I'll get rid of it because I can't see any benefit to using it (the reference that I found indicates that it runs regedit in advanced mode - whatever that is)

Why am I using the *.*?  It's a holdover from my days using DOS :)  It's gone too!

As for using the entire path - I'd imagine that that'll work with standard directory structures.  What about those that are different? (that's why I wanted to use the enviornmental variable).

It's slow at work right now - so I'll modify the batch file as indicated and will give it a whirl.  Thanks!

4
Post New Requests Here / Re: Idea: Run once and then delete
« on: May 13, 2007, 08:02 PM »
I'm a real simpleton when it comes to writing stuff - can't figger out why this doesn't work!

Here's my batch file:
regedit /v ProxyOn.reg
xcopy ProxyOff.reg %ALLUSERSPROFILE%\*.*
regedit /s DelProxy.reg

I get an "Invalid number of parameters" error when executing the line with xcopy in it - so the batch doesn't finish properly.  If I execute the batch file in a cmd window - I get an error in importing the ProxyOn.reg file also.

Here's the rest of the reg files:

ProxyOn.reg:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xx.xx.xx:8080"

ProxyOff.reg:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:0000000
"ProxyServer"=""

DelProxy.reg:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"ProxyOff"="regedit.exe /s %ALLUSERSPROFILE%\ProxyOff.reg"
"DelProxy"="del %ALLUSERSPROFILE%\ProxyOff.reg"

5
Post New Requests Here / Idea: Run once and then delete
« on: May 13, 2007, 07:33 AM »
I've tried doing this myself and it doesn't work for me :(

The idea is to have a file that the user can double click on to change registry settings and it will automatically insert a registry entry that will remove the registry settings on the next reboot.

This is an attempt to enter the proxy server information from work into a computer's registry so that system can access the web.  Then, when the computer is taken home, the reboot will take care of removing the proxy settings.  This'll help us when we forget to remove the proxy before sending it home.

Even better would be a tool that would do this for all the major browsers.

Here's the registry entry that's used for starting the proxy:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="xxx.xx.xx.xx:8080"

And here's the one that's currently used to turn it off:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:0000000
"ProxyServer"=""


Thanks!
 - John



6
Unfinished Requests / IDEA: Save and Exit
« on: May 22, 2005, 05:58 AM »
Dunno how this would be done, but how's about a "Save and Exit" option on the File Menu of some of the more popular editing programs?

Pages: [1]