zabbix
+ Reply to Thread
Results 1 to 3 of 3

Thread: Running on startup no longer works!

  1. #1
    Join Date
    Jul 2006
    Posts
    6

    Running on startup no longer works!

    I need help. Getting a batch file to edit the registry and run something on startup no longer works for me. Here's the code:
    Code:
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "Testing" /d "%userprofile%\testfile.bat" /f
    I did some troubleshooting and found out that the problem lied with the quotation marks. When the above code is executed, the data is put in the registry, but without quotation marks. It looks like this:

    C:\Documents and Settings\User\blah

    Upon reboot, quotation marks are automatically added to the data, so it looks like this:

    "C:\Documents" and Settings\User\blah

    I have no idea how or why this is happening. I've tested it on all three computers in my house, and they all do the exact same thing. The weird part is, I've gotton it to work in the past. Code that I had written and tested no more than five days ago no longer works.

    I'd greatly appreciate help.

  2. #2
    Join Date
    Jul 2006
    Posts
    6
    Nothing seems to work anymore in my batch files! I tried moving everything to C:\ so there wouldn't be any spaces, but then the file itself wouldn't even work. When using the %random% value in a loop to copy files, the computer arbitrarily fails to open the .bat, assigns it only one number, or manages to lose the file I'm copying completely. This is odd because it only gets dicked around on startup. If I manually open the batch file, everything works perfectly.

  3. #3
    Join Date
    Jul 2006
    Posts
    6
    got it fixed

    I needed double the quotes, ie., I needed "/"datajunk/"".

+ Reply to Thread

Similar Threads

  1. How do you find a proxy server that actually works?
    By Ronavar32 in forum Proxies and Firewalls
    Replies: 6
    Last Post: 12-31-2009, 10:33 PM
  2. How to crack a DOS program running in a Windows XP console
    By superstar in forum Security & Encryption
    Replies: 3
    Last Post: 11-25-2007, 10:15 PM
  3. Running Yahoo Messenger behind a firewall
    By Unregistered in forum Proxies and Firewalls
    Replies: 7
    Last Post: 08-01-2005, 04:47 AM
  4. How to view the current running connections......?
    By NEWONE in forum Proxies and Firewalls
    Replies: 2
    Last Post: 12-05-2004, 09:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts