Results 1 to 6 of 6

Thread: Windows XP batch file is not working in Windows 7

  1. #1
    Join Date
    Feb 2010
    Posts
    669

    Windows XP batch file is not working in Windows 7

    I have recently upgraded the operating system from Windows XP to Windows 7. After upgradation I am having a problem in my system with a particular file. The situation is that Windows XP batch file is not working in Windows 7. The file contains the script that is given as follows and it used to run without any problems in Windows XP:
    • set sqlDB=%2
    • set sshFile=ssh_%1
    • ssh depstdetails"/home/deployment/bin/ssh_dump.sh %1"
    • scp depstdetails/home/deployment/w...shFile%.sql.gz
    • 7z x %sshFile%.sql.gz

    The first 3 steps executes, but when it comes to the 4th step, the execution stops. Please help with possible solutions.

  2. #2
    Join Date
    May 2008
    Posts
    4,085

    Re: Windows XP batch file is not working in Windows 7

    The problem that the Windows XP batch file is not working in Windows 7 may be an incompatibility issue that the file has with the operating system. Many of the applications and programs that used to run fine in the previous versions of the Windows operating systems are seen to give problems in Windows 7. Because of this, it is advised to quit installation or upgradation to Windows 7.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Windows XP batch file is not working in Windows 7

    The Windows XP batch file is not working in Windows 7 means that there may be some problem with the particular file. These batch files work by opening from DOS. They are very fast and hence, their working cannot be viewed. But, to know what is actually happening in the file, it can be run by starting DOS, then going to the directory where it is located. After that, run the particular line from the command line that is not working.

  4. #4
    Join Date
    May 2008
    Posts
    2,680

    Re: Windows XP batch file is not working in Windows 7

    I think that rather than an incompatibility issue, the Windows XP batch file is not working in Windows 7 may be because of some security problem. This operating system has many security settings and it is possible that it may be blocking the particular file from being executed. So, I suggest you to use the option of "Run as Administrator". This will force this file to execute in your system.

  5. #5
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Windows XP batch file is not working in Windows 7

    The case that Windows XP batch file is not working in Windows 7 is just another problem that has been encountered in this operating system. Because of such problems, this operating system has not been rated that good by the users. Also, there are no problems with Windows XP or Windows Vista. That means that is no need for an upgradation of the operating system. It is also been seen that Windows 7 has similar features as Windows Vista.

  6. #6
    Dr. V Guest

    Re: Windows XP batch file is not working in Windows 7

    I think that the problem of the Windows XP batch file is not working in Windows 7 can be solved if you set the operating system in the compatibility mode when the file runs in the operating system. For this, right-click on the icon of the file and select the troubleshoot compatibility option. Here, you can let the system to do the settings or even you can do the same by specifying the problems that the file is having with Windows 7.

Similar Threads

  1. How to rename Batch File with Windows PowerShell
    By Akiraa in forum Tips & Tweaks
    Replies: 0
    Last Post: 25-08-2012, 12:06 PM
  2. Windows Batch script to read file
    By SinghR in forum Windows Server Help
    Replies: 1
    Last Post: 28-04-2012, 12:56 PM
  3. Access denied for batch file using Windows 7
    By WarlordD in forum Operating Systems
    Replies: 3
    Last Post: 01-04-2011, 07:34 PM
  4. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  5. How can I play a sound file from a Windows batch file?
    By Linoo in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 07:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,025,474.65194 seconds with 16 queries